Re: [PATCH 2/4] d3d9/tests: The device restores the mode settings from the registry (v3).
Stefan Dösinger <stefan(a)codeweavers.com> writes:
Version 3: Simplify the mode selection code and hardcode D3DFMT_X8R8G8B8. Retain the test for mode reset when the device was originally created with the registry size.
Version 2: Make sure the mode set with ChangeDisplaySettings is bigger than the device's mode. Otherwise Windows shrinks the window to the new mode + 12 pixels. Testing this behavior is not the purpose of this test.
Implementing this behavior is complicated because ddraw destroys and recreates swapchains in SetCooperativeLevel. --- dlls/d3d9/tests/device.c | 153 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 117 insertions(+), 36 deletions(-)
It doesn't work here: ../../../tools/runtest -q -P wine -T ../../.. -M d3d9.dll -p d3d9_test.exe.so device && touch device.ok device.c:4034: Test succeeded inside todo block: Got unexpect width 1920, expected 1920. device.c:5516: Tests skipped: This GPU supports SM3, skipping unsupported shader test. device.c:5928: Tests skipped: D3DFMT_A32B32G32R32F supports filtering, skipping tests. device.c:7229: Tests skipped: Dynamic D3DFMT_YUY2 textures not supported, skipping mipmap test. device.c:7229: Tests skipped: Dynamic D3DFMT_UYVY textures not supported, skipping mipmap test. make: *** [device.ok] Error 1 -- Alexandre Julliard julliard(a)winehq.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 2014-11-04 13:19, schrieb Alexandre Julliard:
device.c:4034: Test succeeded inside todo block: Got unexpect width 1920, expected 1920. I cannot reproduce this on any of my systems. Can you make a +d3d,+x11settings log?
Thanks, Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJUWTPKAAoJEN0/YqbEcdMwYbgP/0ATs5dL8Ie9JXTKKCLwSWO/ RHLFiBwvb7ChL4orl4klXifXGkU+HJ7PWPM6RG1ZLmmoV+l+VlQRLsBSgiZaMp0M bwr/Rme4ms0z5CTAAvfVktxu/d+FwW/k4Czg8S+uqgQXjNDyqVNUEIle6g9H5sNS BlFjc3Uwerol9FoVaWhCnMhEnbH9qQdW4dP2Hjusv7yuuoWsLYE5tXFGNsmLDRUT IkMQ+xeG01rLADSbckpaNV21y+4nXyrBkAdsXylpsLRrSDe7kZY3Ik0Km8YSXen4 x3NuLQ0rJGaRZgZTTtIFcfVhaB59WbU/VYmxnkbQusTeZOnpTZzW91GlU5LONMR+ XAR/eGlviSvjhOZU3+gsuBiq0P2IoOjCQTT+KdzJOfp99UbQlYpU+DEcD10tFHya oJBo6BfUsr6PrF0jGXZCvUDQkmB/Ye0tvYL8UFLelFJ0KnX0GE+UHTsuSgQul9aA ZAzBZA6p1g7VcHDwShP4EJYR5siSRqsjlILbJ/Q7l7l2BTckD9k1SQ+5+us3QnxA q0+vp7VxDmX4c32VRx3hInlHhOMc+QY6iKrDMuughie1yrBw7Tmr37lX14hF2G3F CMPPXVXZyrgptWroZYCmnI12FRFj4kLpF/yie8F6ZS8kDg0xR6Iu2NUG6Fqjoq0s 2/P3sQl7ckDBZcEN8LDL =AE9X -----END PGP SIGNATURE-----
participants (2)
-
Alexandre Julliard -
Stefan Dösinger