[PATCH 3/3] d3d9/tests: Improve testing of display formats and IDirect3D9_CheckDeviceType().

Ken Thomases ken at codeweavers.com
Wed Jan 22 16:42:38 CST 2014


Consolidates duplicated code by using a simpler table-driven mechanism.
Instead of manually listing out certain combinations of display formats vs.
backbuffer formats, it just lists the formats and some metadata about them.
The algorithm tests every format against every format, using the metadata
to predict success or failure.  This also tests that CheckDeviceType() fails
for display formats for which there are no adapter modes, rather than
skipping those.

Tests windowed mode.
---
dlls/d3d9/tests/device.c |  162 ++++++++++++++++++----------------------------
1 files changed, 64 insertions(+), 98 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-d3d9-tests-Improve-testing-of-display-formats-and-ID.patch
Type: text/x-patch
Size: 9682 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140122/5e04b5fd/attachment-0001.bin>


More information about the wine-patches mailing list