linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Problem with BitBLT
@ 2003-07-09 19:29 Fredrik Söderqvist
  0 siblings, 0 replies; 2+ messages in thread
From: Fredrik Söderqvist @ 2003-07-09 19:29 UTC (permalink / raw)
  To: Nitin Mahajan; +Cc: linux-fbdev-devel

[-- Attachment #1: Type: text/plain, Size: 3857 bytes --]

I'm a bit concerned about the tenth bit in the BR04 register. Datasheet (page 325) says:

"10 Source select
      0: Configures the BitBLT engine to read the source data from the frame buffer ...
      1: Configures the BitBLT engine to accept the source data from the host CPU via the BitBLT data port ..."

So if we want copy VRAM->VRAM bit 10 should be 0 - no?

Regarding BR04 (bits 0-7):

Since 0xFF is the "write all 1:s" and you see a small block, I believe you are correct when you think the problem is with the transfer from System RAM -> VRAM. The 0xCC should though be what we need... (source copy).

Maybe you could try moving the source data to a different offset than 0? If there are any issues with overlapping...

Filling the entire VRAM with a pattern could perhaps also help in find the problem.

Regards,
F. Söderquist
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_002_01C3463F.4D99F2A8"


------_=_NextPart_002_01C3463F.4D99F2A8
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

HI!
 
Iam trying to program the Bit BLT engine of 69030 with the attached code, but nothing is visible on the screen.
When I select the bitwise operation as 0xFF(write to BR04) ,the white block is coming at desired location and of desired size.
But whwn I choose it as 0xCC nothing comes on screen...
Can any one please help me out of this......
THANKING U IN ADAVANCE
regards,
 
Nitin Mahajan
mail:nitin@soc-soft.com
Ph:51101667. Mobile : 9886099925
======================================
The Lord gave us two ends -- one to sit on and the other to think with. Success depends on which one we use the most.
 

------_=_NextPart_002_01C3463F.4D99F2A8
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=863152217-09072003>HI!</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=863152217-09072003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=863152217-09072003>Iam trying to 
program the Bit BLT engine of 69030 with the attached code, but nothing is 
visible on the screen.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=863152217-09072003>When I select the 
bitwise operation as 0xFF(write to BR04)&nbsp;,the white block is coming at 
desired location and of desired size.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=863152217-09072003>But whwn I choose it 
as 0xCC nothing comes on screen...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=863152217-09072003>Can any one please 
help me out of this......</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=863152217-09072003>THANKING U IN 
ADAVANCE</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=863152217-09072003>regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV align=left><FONT face=Verdana size=2>Nitin Mahajan</FONT></DIV>
<DIV align=left><FONT face=Verdana size=2>
<DIV align=left><FONT face=Verdana 
size=2>mail:nitin@soc-soft.com</FONT></DIV></FONT></DIV>
<DIV align=left><FONT face=Verdana size=2>Ph:51101667. Mobile : 
9886099925</FONT></DIV>
<DIV align=left><FONT face=Verdana 
size=2>======================================</FONT></DIV>
<DIV align=left><FONT face=Verdana size=2>The Lord gave us two ends -- one to 
sit on and the other to think with. Success depends on which one we use the 
most.</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_002_01C3463F.4D99F2A8--

^ permalink raw reply	[flat|nested] 2+ messages in thread
* Problem with BitBLT
@ 2003-07-09 17:26 Nitin Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Nitin Mahajan @ 2003-07-09 17:26 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: Fredrik Söderqvist


[-- Attachment #1.1: Type: text/plain, Size: 625 bytes --]

HI!
 
Iam trying to program the Bit BLT engine of 69030 with the attached code, but nothing is visible on the screen.
When I select the bitwise operation as 0xFF(write to BR04) ,the white block is coming at desired location and of desired size.
But whwn I choose it as 0xCC nothing comes on screen...
Can any one please help me out of this......
THANKING U IN ADAVANCE
regards,
 
Nitin Mahajan
mail:nitin@soc-soft.com
Ph:51101667. Mobile : 9886099925
======================================
The Lord gave us two ends -- one to sit on and the other to think with. Success depends on which one we use the most.
 

[-- Attachment #1.2: Type: text/html, Size: 1962 bytes --]

[-- Attachment #2: blit_69030.txt --]
[-- Type: text/plain, Size: 836 bytes --]

void chips_imageblit(struct fb_image *image)
{
	UINT32 dst_span,src_span;
    
	/* Wait till blitter is not busy */
	while (BR04 & (1 << 31))
	   ; 

	/* BitBlt Control Register */
	BR04 = ((bytes_per_pixel - 1) & 0x3) << 24 | 
		1 << 23 | 1 << 10 |
		CCh;
	/*MOdify bit 10 of this register*/

	/* Src & Dst Span */
    	src_span = (image->width * bytes_per_pixel) & 0x1FFF;
	dst_span = (xres * bytes_per_pixel) & 0x1FFF;

	BR00 = dst_span << 16 | src_span;

	/* Source Address */
	BR06 = 0x00;

	/* Destination Address */
	BR07 = 0x0; /* ((pos_y * xres + pos_x) * bytes_per_pixel) & 0x3FFFFF */

	memcpy(BLIT_BASE, image->data, image->height * image->width * bytes_per_pixel);

	/* Destination width and height */
	BR08 = (image->height & 0x1FFF) << 16 | src_span;

	/* Blit should now be in action */
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-09 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-09 19:29 Problem with BitBLT Fredrik Söderqvist
  -- strict thread matches above, loose matches on Subject: below --
2003-07-09 17:26 Nitin Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).