WineD3D: p8 improvements 1/2

Roderick Colenbrander thunderbird2k at gmx.net
Thu Oct 11 16:09:01 CDT 2007


Hi,

This patch fixes a P8 palette read back problem. The code tried to convert RGB data back to a palette index. This didn't work for programs which have multiple entries for the same color. We store the index in the alpha component which is unused for render target surfaces. In case of P8 texturing this can't be done as it needs alpha.

A nice side effect is that this greatly improves P8 read back performance because no conversion is needed anymore.

Regards,
Roderick Colenbrander
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-inverse-palette-lookup-for-P8-surfaces.-The-prev.patch
Type: text/x-diff
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071011/da6161da/attachment.patch 


More information about the wine-patches mailing list