[PATCH 2/2] d3dx9: Add tests for ARGB pixel format conversion in D3DXLoadSurfaceFromMemory

Tony Wasserka tony.wasserka at freenet.de
Tue Oct 13 07:19:22 CDT 2009


Testing the conversion from and to common unsigned ARGB formats.
- Changed other D3DXLoadSurfaceFromMemory tests which used
D3DX_FILTER_DEFAULT to use D3DX_FILTER_NONE (depending on the actual
purpose of the test, it makes no sense if they test whether the function
supports box (default) filters if the purpose of the test was to check
if the function works at all)
- the check_pixel_1/2/4bpp macros need to be macros because we don't get
a usuable fail trace otherwise without always providing __LINE__ as a
parameter.
- Note that the remaining todo_wine's are due to the for loops described
in Patch 1. Implementing the correct behavior decreases performance that
much, that it's IMO not worth caring too much about differences of 5
color values.



More information about the wine-patches mailing list