wined3d: Fix ATI2N pitch and offset calculations

Stefan Dösinger stefandoesinger at gmx.at
Tue Mar 16 02:47:45 CDT 2010


Am 16.03.2010 um 01:36 schrieb REalm:

> Fix ATI2N calculations to match Windows.
> Not sure if this is the right way, but it's better than previous old try.
> Might also be possible making ATI2N non compressed surface? Or some special flag?
> This also fixes bug 21519: Mass Effect 2 crashes after start.

> -    {WINED3DFMT_ATI2N,  4,  4,  16},
> +    {WINED3DFMT_ATI2N,  1,  1,  1},
This way is OK IMO, it's certainly better than adding a special flag for just this surface. What we may think about is migrating all surfaces to the block notation and using blocksize 1x1, bpp bytes per block for uncompressed surfaces. That's beyond the scope of this patch though.




More information about the wine-devel mailing list