Commit Graph

1282 Commits

Author SHA1 Message Date
Henri Verbeet ad86da8cd0 d3d9/tests: Handle failure to create a device in the stateblock tests with skip(). 2014-03-07 11:33:49 +01:00
Henri Verbeet 84faf3d8c2 d3d9/tests: Use create_device() in more tests. 2014-03-07 11:33:30 +01:00
Henri Verbeet b50235ab35 d3d9/tests: Don't bother handling Direct3DCreate9() failures, we verified it works earlier. 2014-03-06 12:01:29 +01:00
Stefan Dösinger 7f675174c8 d3d9: Make ResetEx and PresentEx hookable. 2014-03-03 17:46:52 +01:00
Henri Verbeet 1168948764 d3d9/tests: Get rid of "skip_once" in yuv_layout_test(). 2014-03-03 17:02:19 +01:00
Francois Gouget e08c6947c2 d3d9/tests: Fix some test failures on Windows 2000. 2014-02-25 14:20:15 -06:00
Ken Thomases 995be892fa d3d9/tests: Test that Direct3D9 doesn't modify the pixel format of the window it targets. (try 4, resend). 2014-02-22 08:41:59 -06:00
Martin Storsjo 8b2938a23e d3d9/tests: Add tests for different YUV texture layouts. 2014-02-17 20:16:31 +01:00
Stefan Dösinger 442446cdc8 d3d9/tests: Add a test for sub resource private data. 2014-02-17 20:16:27 +01:00
Stefan Dösinger 6745982aaa d3d9/tests: Skip YUV tests if the formats cannot be converted.
The Windows 8 testbot supports some YUV formats as plain surfaces, but cannot
convert them to RGB in StretchRect.
2014-02-17 20:16:26 +01:00
Stefan Dösinger 35223d80cb d3d9/tests: Clean up yuv_color_test. 2014-02-17 20:16:25 +01:00
Ken Thomases a6f00eb2b9 d3d9/tests: Ignore broken CheckDeviceType() behavior on 64-bit Windows 8. 2014-02-13 19:01:03 +01:00
Henri Verbeet a1b963490a d3d9/tests: Direct3DCreate9() is always available if we have d3d9. 2014-01-29 20:26:14 +01:00
Henri Verbeet 71d018b25b d3d9/tests: Cleanup test_display_formats() a bit. 2014-01-29 20:25:57 +01:00
Henri Verbeet 175c63773d wined3d: Don't allow format conversion on Present() for d3d8.
Note that this isn't currently enforced by wined3d_swapchain_create() or
wined3d_device_reset() though.
2014-01-29 20:25:52 +01:00
Ken Thomases 6f498c4946 d3d9/tests: Improve testing of display formats and IDirect3D9_CheckDeviceType().
Tests every combination of display format and backbuffer format from
(D3DFMT_R5G6B5, D3DFMT_X1R5G5B5, D3DFMT_A1R5G5B5, D3DFMT_X8R8G8B8,
D3DFMT_A8R8G8B8, D3DFMT_A2R10G10B10, D3DFMT_UNKNOWN).

Tests the behavior of CheckDeviceType() with display formats for which there
are no adapter modes, rather than skipping those.

Tests windowed mode.
2014-01-28 19:38:48 +01:00
Ken Thomases 35d8c56333 d3d9: Make CheckDeviceType() fail for display formats other than D3DFMT_X8R8G8B8 and D3DFMT_R5G6B5 in full-screen.
The adapter mode functions already enforce this, and tests show
CheckDeviceType() should fail for full-screen mode with display formats for
which there are no adapter modes.
2014-01-28 19:38:46 +01:00
Andrey Gusev e7f0a8a081 Assorted spelling and typos fixes. 2014-01-27 17:00:11 +01:00
Frédéric Delanoy 91f2435469 Assorted spelling fixes. 2014-01-09 17:39:59 +01:00
Stefan Dösinger b91973daa7 wined3d: Merge wined3d_surface_set_mem into wined3d_surface_update_desc . 2014-01-08 20:02:22 +01:00
Henri Verbeet 86ffd6c4ea d3d9/tests: Make sure create_device() returns NULL on failure. 2014-01-08 14:34:13 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Stefan Dösinger 03fe6f3e07 d3d9/tests: Test user memory and getdc interaction. 2013-12-12 19:21:36 +01:00
Stefan Dösinger 58f16ddd4e d3d9: shared_handle must be NULL in non-ex d3d9. 2013-12-10 17:32:22 +01:00
Stefan Dösinger 62df35c312 d3d9: Implement user memory for offscreen plain surfaces. 2013-12-10 17:32:15 +01:00
Stefan Dösinger 96c7a4d6ca d3d9: Buffers do not support user memory. 2013-12-10 17:32:09 +01:00
Stefan Dösinger d9bd9a9a87 d3d9: Volume and cube textures do not support user memory. 2013-12-10 17:32:03 +01:00
Stefan Dösinger b7b0b7d2e1 d3d9/tests: Test user memory with D3DPOOL_SCRATCH. 2013-12-10 17:31:56 +01:00
Henri Verbeet 15c1a26b55 wined3d: Create volumes inside wined3d. 2013-12-06 13:14:52 +01:00
Stefan Dösinger 799c2fb866 d3d9/tests: Extend the sysmem texture mipmap test. 2013-12-04 21:19:03 +01:00
Frédéric Delanoy 5ba7f79bad Assorted spelling fixes. 2013-12-03 19:41:53 +01:00
Henri Verbeet 4b3db52b53 wined3d: Merge the texture creation functions. 2013-11-27 11:30:15 +01:00
Stefan Dösinger c96092f831 d3d9/tests: Read the result before swapping in volume_v16u16_test. 2013-11-25 17:42:54 +01:00
Stefan Dösinger cc138ba296 d3d9/tests: Add a test for AddDirtyRect. 2013-11-21 19:39:02 +01:00
Henri Verbeet afc3d2ab70 wined3d: Create surfaces inside wined3d. 2013-11-15 12:00:26 +01:00
Francois Gouget b436087217 d3d9/tests: Fix a test failure on Windows XP with the default VGA driver. 2013-11-05 20:38:20 +01:00
Henri Verbeet ceb4d2595b d3d9/tests: Get rid of the "data2" vertex data array in pretransformed_varying_test(). 2013-11-04 11:05:51 +01:00
Henri Verbeet 88971aa17d d3d9/tests: Get rid of some unused test data in pretransformed_varying_test(). 2013-11-01 10:53:14 +01:00
Henri Verbeet 532f17bce0 d3d9/tests: Fix the expected value for the "blendindices" test in pretransformed_varying_test().
0x00333333 makes much more sense than 0x00000000, and is what most of my
hardware returns. Apparently at least some GF7 cards (still) return
0x00000000, so also accept that as broken().
2013-11-01 10:53:09 +01:00
Henri Verbeet 90bd39c4e3 d3d9/tests: Use color_match() in more places. 2013-10-31 09:58:43 +01:00
Henri Verbeet a17abf8d7d d3d9/tests: Use explicit A calls. 2013-10-30 11:21:32 +01:00
Henri Verbeet 3528393d64 d3d9/tests: Avoid windowsx.h. 2013-10-30 11:21:32 +01:00
Stefan Dösinger 60f62f4d48 d3d9/tests: Give stencil_cull_test its own device.
After drawing a quad with cullmode != none, the r500's Windows driver's
ability to clip clear rectangles to the viewport is permanently broken.
This shows up as a test failure in depth_buffer_test().
2013-10-29 20:07:07 +01:00
Lasse Rasinen eeefed3dd0 d3d9: Update locked_rect only if wined3d_surface_map succeeds. 2013-10-28 19:31:12 +01:00
Stefan Dösinger 9c19266a24 d3d9/tests: Remove the rtpatch test.
It segfaults on Win7 + Nvidia Kepler and apparently returns different
return values on Windows 8. Since this functionality isn't supported on
any HW I doubt games will care.
2013-10-24 19:01:56 +02:00
Henri Verbeet f31d2485be d3d9: Don't mask out internal wined3d usage flags in surface_init(). 2013-10-02 11:05:39 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Stefan Dösinger fe20ee1bc4 d3d9/tests: Add a volume V16U16 test. 2013-09-23 20:32:34 +02:00
Sebastian Lackner 0fb3aaac10 d3d9/tests: Implemented tests for IDirect3DSwapChain9Ex_GetDisplayModeEx. 2013-09-20 17:03:44 +02:00