d3d11/tests: Move the is_warp_device() call out of the loop in check_format_support().
commite5f5bea390d263e2119e25ee8802864409719941
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 14 Sep 2022 09:34:27 +0000 (14 11:34 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 15 Sep 2022 20:33:18 +0000 (15 22:33 +0200)
treebbe4a5c55a2f8fb7bc965fadbfc65917949dfbee
parent7d20333faf8e93a3a16680cf1beadc9cdcb50c45
d3d11/tests: Move the is_warp_device() call out of the loop in check_format_support().

There's no point in querying this multiple times, it's not going to change.

Perhaps more importantly, calling is_warp_device() inside a todo_wine block
will cause "Test succeeded inside todo block: ..." messages from
get_device_adapter_desc(). These appear to have been introduced by commit
fcc276ecb1508d5217ec977ca530ee7d30d355b9. Arguably get_device_adapter_desc()
shouldn't use ok() in the first place.
dlls/d3d11/tests/d3d11.c