Yep,
Double checked, the Source formats per the avenger docs are:

0 - 1bit
1 - 8bit
3 - 16bit RGB
4 - 24bit RGB
5 - 32bit RGB
8 - Packed 4:2:2 YUYV
9 - Packed 4:2:2 UYVY

Destination Formats are:

1       - 8bpp
3       - 16bpp
4       - 24bpp
5       - 32bpp

So, if DFB_PIXELFORMAT_INDEX is returning a value of 1 for a 16bpp source,
it presents an issue.

Now is this a fix that needs to be implemented in the core or in the tdfx
driver?


Thanks,
David Wood



-----Original Message-----
From: Wood, David [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 9:34 AM
To: Directfb-Dev (E-mail)
Subject: [directfb-dev] FW: DFB_PIXELFORMAT_INDEX Macro


Well, there in lies my problem, thanks Denis.  It seems that for srcFormat
and dstFormat registers, the values are 1 for 8 bit and 3 for 16 bit.

Thanks,
David Wood


-----Original Message-----
From: Denis Oliver Kropp [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 7:08 PM
To: Wood, David
Cc: Directfb-Dev (E-mail)
Subject: Re: [directfb-dev] DFB_PIXELFORMAT_INDEX Macro


Quoting Wood, David ([EMAIL PROTECTED]):
> I noticed in my source and destination validation it's setting the
srcformat
> to be the return of DFB_PIXELFORMAT_INDEX macro.  I'm running in 16bit
mode,
> my supposition at the moment is that the return values of
> DFB_PIXELFORMAT_INDEX do not exactly match the proper values for the
> srcFormat and dstFormat registers on the 2D chipset for the Voodoo.  For a
> 16bit rgb surface, what is the final return of this macro?  I suppose I
> could calculate it myself, but I thought I'd be lazy and ask.

DFB_PIXELFORMAT_INDEX( DSPF_RGB16 )  is 1.
DFB_PIXELFORMAT_INDEX( DSPF_RGB32 )  is 3.

So it seems to use the right entries of blitFormat[].

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

           convergence integrated media GmbH


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to