D3D9: Add a pitch test for a 1x1 texture

Stefan Dösinger stefan at codeweavers.com
Tue Sep 26 09:56:01 CDT 2006

> Shouldn't the test be about alignment, rather than the exact size?
> I that case the power-of-two stuff shouldn't matter either, as long as
> it's properly aligned. I do have an initial patch for native NPOT
> support, but it will (of course) only work on cards that support the
> relevant extension.
In theory yes, but there are games which depend on the exact pitch :-( 
(Warhammer 40k is one of them I think. This is what the registry key is there 

I think we should switch to NP2 repacking by default(and fix it if it is 
broken), with that we can offer the correct pitch without the NPOT extension 

Just as a sidenode, ddraw seems to work different. I suspect it has 64 bit 
alignment and a special case for 1x1 surfaces, I need to track that down too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20060926/d4049579/attachment.pgp

More information about the wine-devel mailing list