Commit Graph

1456 Commits

Author SHA1 Message Date
Henri Verbeet 230b910a34 d3d9/tests: Use a separate device for texture_transform_flags_test(). 2014-04-08 09:47:05 +02:00
Stefan Dösinger af51c679bf d3d9/tests: Add a test for (sub-) resource types. 2014-04-07 19:06:11 +02:00
Henri Verbeet f4f066ca28 d3d9/tests: Use a separate device for autogen_mipmap_test(). 2014-04-07 15:34:42 +02:00
Henri Verbeet 93a37ed548 d3d9/tests: Use a separate device for fixed_function_decl_test(). 2014-04-07 15:34:42 +02:00
Henri Verbeet e5589b74a7 d3d9/tests: Use a separate device for conditional_np2_repeat_test(). 2014-04-07 15:34:41 +02:00
Henri Verbeet 3d78a77f74 d3d9/tests: Use a separate device for fixed_function_bumpmap_test(). 2014-04-07 15:34:40 +02:00
Henri Verbeet f3a898a87d d3d9/tests: Use a separate device for pointsize_test(). 2014-04-07 15:34:39 +02:00
Henri Verbeet 7980b8d833 d3d9/tests: Use a separate device for tssargtemp_test(). 2014-04-04 10:46:24 +02:00
Henri Verbeet 12743d5709 d3d9/tests: Use a separate device for np2_stretch_rect_test(). 2014-04-04 10:46:22 +02:00
Henri Verbeet 2e0e4f91ff d3d9/tests: Use a separate device for yuv_color_test(). 2014-04-04 10:46:20 +02:00
Henri Verbeet 09be75d2b8 d3d9/tests: Use a separate device for yuv_layout_test(). 2014-04-04 10:46:19 +02:00
Henri Verbeet e13a785723 d3d9/tests: Use a separate device for zwriteenable_test(). 2014-04-04 10:46:16 +02:00
Henri Verbeet dbb7386208 d3d9/tests: Use a separate device for alphatest_test(). 2014-04-03 13:22:34 +02:00
Henri Verbeet 15a2817d8d d3d9/tests: Use a separate device for viewport_test(). 2014-04-03 13:22:32 +02:00
Henri Verbeet 9d9f580b8c d3d9/tests: Use a separate device for test_constant_clamp_vs(). 2014-04-03 13:22:31 +02:00
Henri Verbeet 1e772e5d89 d3d9/tests: Use a separate device for test_compare_instructions(). 2014-04-03 13:22:28 +02:00
Henri Verbeet 9c705180b6 d3d9/tests: Use a separate device for test_mova(). 2014-04-03 13:22:23 +02:00
Henri Verbeet f350774c77 d3d9/tests: Use a separate device for loop_index_test(). 2014-04-02 10:58:12 +02:00
Henri Verbeet 47786eb64a d3d9/tests: Use a separate device for sincos_test(). 2014-04-02 10:58:10 +02:00
Henri Verbeet 94e337df19 d3d9/tests: Use a separate device for sgn_test(). 2014-04-02 10:58:08 +02:00
Henri Verbeet f237f86397 d3d9/tests: Use a separate device for clip_planes_test(). 2014-04-02 10:58:06 +02:00
Henri Verbeet 779b8b53e8 d3d9/tests: Use a separate device for test_vshader_input(). 2014-04-02 10:58:02 +02:00
Henri Verbeet ef292a1a96 d3d9/tests: Handle the Windows 8 testbot results in test_vshader_input(). 2014-04-01 13:30:58 +02:00
Henri Verbeet 7641980a9e d3d9/tests: Use an easier to debug texture in generate_bumpmap_textures().
This makes it much easier to determine what went wrong if an implementation
samples from the wrong location.
2014-04-01 13:30:57 +02:00
Henri Verbeet 7f9c0d45e7 d3d9/tests: Handle the Windows 8 testbot results in cnd_test(). 2014-04-01 13:30:56 +02:00
Henri Verbeet f11f913ab0 d3d9/tests: Handle the Windows 8 testbot results in fp_special_test(). 2014-04-01 13:30:55 +02:00
Henri Verbeet f174ca74c8 d3d9/tests: Handle the Windows 8 testbot results in zenable_test(). 2014-04-01 13:30:54 +02:00
Stefan Dösinger ebd5f96aea wined3d: Remove resource private data methods. 2014-03-24 20:20:18 +01:00
Stefan Dösinger 50de4cda8f d3d9: Use the private store api for surfaces. 2014-03-24 20:20:17 +01:00
Stefan Dösinger 6121393d0a d3d9: Use the private store api for textures. 2014-03-24 20:20:17 +01:00
Stefan Dösinger f2b5bf26b7 d3d9: Use the private store api for buffers. 2014-03-24 20:20:16 +01:00
Stefan Dösinger 96a74e0cf7 d3d9: Introduce a resource structure. 2014-03-24 20:20:15 +01:00
Henri Verbeet ad306ce41a d3d9/tests: Use a separate device for test_vshader_float16(). 2014-03-24 11:49:40 +01:00
Henri Verbeet 63609b3418 d3d9/tests: Use a separate device for stream_test(). 2014-03-24 11:49:37 +01:00
Henri Verbeet 0be10d6050 d3d9/tests: Use a separate device for fog_with_shader_test(). 2014-03-24 11:49:35 +01:00
Henri Verbeet aded2bb23c d3d9/tests: Use a separate device for texbem_test(). 2014-03-24 11:49:33 +01:00
Henri Verbeet 65c9b48de6 d3d9/tests: Use a separate device for texdepth_test(). 2014-03-24 11:49:31 +01:00
Henri Verbeet b175891182 d3d9/tests: Use a separate device for texkill_test(). 2014-03-21 13:59:22 +01:00
Henri Verbeet 3cc2d639bb d3d9/tests: Use a separate device for x8l8v8u8_test(). 2014-03-21 13:59:22 +01:00
Henri Verbeet d1d40bfa55 d3d9/tests: Use a separate device for volume_v16u16_test(). 2014-03-21 13:59:21 +01:00
Henri Verbeet 4a2e38953e d3d9/tests: Use a separate device for constant_clamp_ps_test(). 2014-03-21 13:59:20 +01:00
Henri Verbeet 7f302ac4c4 d3d9/tests: Use a separate device for cnd_test(). 2014-03-21 13:59:19 +01:00
Stefan Dösinger 938529e1f9 wined3d: Remove the version parameter. 2014-03-20 19:04:37 +01:00
Henri Verbeet cd93070bfd d3d9/tests: Use a separate device for dp2add_ps_test(). 2014-03-20 10:44:03 +01:00
Henri Verbeet c0fdad52c2 d3d9/tests: Use a separate device for unbound_sampler_test(). 2014-03-20 10:44:01 +01:00
Henri Verbeet 07c42c9eda d3d9/tests: Use a separate device for nested_loop_test(). 2014-03-20 10:43:58 +01:00
Henri Verbeet f1d4d8c49d d3d9/tests: Use a separate device for pretransformed_varying_test(). 2014-03-20 10:43:56 +01:00
Henri Verbeet c11904b86d d3d9/tests: Use a separate device for vface_register_test(). 2014-03-20 10:43:54 +01:00
Henri Verbeet 3ec514382f d3d9/tests: Use a separate device for vpos_register_test(). 2014-03-19 11:33:21 +01:00
Henri Verbeet 7df9eb08fb d3d9/tests: Use a separate device for multiple_rendertargets_test(). 2014-03-19 11:33:20 +01:00
Henri Verbeet ad45d2c233 d3d9/tests: Use a separate device for texop_test(). 2014-03-19 11:33:19 +01:00
Henri Verbeet 91d3dcffd7 d3d9/tests: Use a separate device for texop_range_test(). 2014-03-19 11:33:19 +01:00
Henri Verbeet 33b32c9dd5 d3d9/tests: Use a separate device for alphareplicate_test(). 2014-03-19 11:33:18 +01:00
Henri Verbeet ad81149953 d3d9/tests: Use a separate device for dp3_alpha_test(). 2014-03-18 11:42:35 +01:00
Henri Verbeet 34e9d94d81 d3d9/tests: Use a separate device for depth_buffer_test(). 2014-03-18 11:42:33 +01:00
Henri Verbeet 38e2f4ca05 d3d9/tests: Use a separate device for depth_buffer2_test(). 2014-03-18 11:42:31 +01:00
Henri Verbeet 421f925d5e d3d9/tests: Use a separate device for depth_blit_test(). 2014-03-18 11:42:24 +01:00
Henri Verbeet 424e069edc d3d9/tests: Use a separate device for intz_test(). 2014-03-18 11:42:21 +01:00
Henri Verbeet 7071bf199f d3d9/tests: Use a separate device for shadow_test(). 2014-03-17 17:34:11 +01:00
Henri Verbeet b1fbee3340 d3d9/tests: Use a separate device for fp_special_test(). 2014-03-17 17:34:11 +01:00
Henri Verbeet f281ca2214 d3d9/tests: Use a separate device for depth_bounds_test(). 2014-03-17 17:34:11 +01:00
Henri Verbeet e93ff4063f d3d9/tests: Use a separate device for srgbwrite_format_test(). 2014-03-17 17:34:11 +01:00
Henri Verbeet cfbb16ad49 d3d9/tests: Use a separate device for update_surface_test(). 2014-03-17 17:34:11 +01:00
Henri Verbeet 0ee5fae929 d3d9/tests: Use a separate device for multisample_get_rtdata_test(). 2014-03-14 16:14:24 +01:00
Henri Verbeet af63977750 d3d9/tests: Use a separate device for zenable_test(). 2014-03-14 16:14:23 +01:00
Henri Verbeet 55e669265d d3d9/tests: Use a separate device for fog_special_test(). 2014-03-14 16:14:23 +01:00
Henri Verbeet f9c46fb77a d3d9/tests: Use a separate device for volume_srgb_test(). 2014-03-14 16:14:22 +01:00
Henri Verbeet c868f2d3a7 d3d9/tests: Use a separate device for volume_dxt5_test(). 2014-03-14 16:14:21 +01:00
Henri Verbeet b02129aa90 d3d9/tests: Give add_dirty_rect_test() its own device.
We want to avoid tests accidentally depending on state set by previous
tests. For example, add_dirty_rect_test() had a dependency on D3DRS_CULLMODE
being D3DCULL_NONE, set by lighting_test().
2014-03-13 20:22:05 +01:00
Henri Verbeet cac52b4b10 d3d9/tests: Don't share the D3D object either in visual.c tests that have their own device. 2014-03-13 20:22:04 +01:00
Henri Verbeet 6f1b494a90 d3d9/tests: Move some stateblock tests to device.c. 2014-03-13 20:22:02 +01:00
Stefan Dösinger 2a95fa6831 d3d9/tests: Test GetPrivateData size behavior. 2014-03-12 19:01:15 +01:00
Stefan Dösinger 6ffbfc7c29 d3d9/tests: Use a custom GUID for the private data tests. 2014-03-12 19:01:13 +01:00
Stefan Dösinger 379c6564db d3d9/tests: Show that a failing SetPrivateData call does not clear the old contents. 2014-03-11 19:39:31 +01:00
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
Michael Müller cf01bb3d2a d3d9/tests: Test if IDirect3DSwapChain9Ex is available with IDirect3D9(Ex). 2013-09-20 17:03:31 +02:00
Michael Müller edad7dea7e d3d9: Partial implementation of IDirect3DSwapChain9Ex. 2013-09-20 17:03:20 +02:00
Henri Verbeet 11ced88a37 d3d9: Avoid CONST. 2013-09-20 11:27:51 +02:00
Stefan Dösinger 708024f786 d3d9/tests: Read the caps from the device. 2013-09-19 19:49:40 +02:00
Stefan Dösinger 2f9d9b5032 d3d9/tests: Test invalid volume lock boxes. 2013-09-18 15:47:16 +02:00
Stefan Dösinger 50d2cdd0ea d3d9/tests: Add tests for block-based volume formats. 2013-09-18 15:47:11 +02:00
Henri Verbeet 674b1e922d d3d9: Avoid LPVOID. 2013-09-13 10:57:05 +02:00
Henri Verbeet e55e24a731 d3d9: Avoid LPCWSTR. 2013-09-13 10:57:03 +02:00
Stefan Dösinger 53741d2bb9 d3d9/tests: D3DCMP_GREATER is broken on r500. 2013-09-12 17:48:51 +02:00
Stefan Dösinger ed50457694 d3d9/tests: Clean up z_range_test a bit. 2013-09-12 17:48:28 +02:00
Henri Verbeet 1a78667862 wined3d: Allow the first render target to be set to NULL.
Note that it still isn't necessarily safe to render in this case, because
there are places where we assume the first render target is always non-NULL in
order to determine e.g. framebuffer dimensions. It's now the responsibility of
the caller to ensure that doesn't happen.
2013-09-12 10:59:18 +02:00
Stefan Dösinger c0a14564d3 d3d9/tests: Actually accept r500 results. 2013-09-10 17:00:59 +02:00
Stefan Dösinger ff14c24dd2 d3d9/tests: Use a plain depth stencil instead of a texture.
r500 does not support anything but AMD's extension depth texture formats
on Windows 7. Plain surfaces work OK with the builtin formats.
2013-09-10 17:00:55 +02:00
Stefan Dösinger b59418d75d d3d9/tests: Test the behavior of failing surface creation calls. 2013-09-10 17:00:46 +02:00
Stefan Dösinger b7b028ca4b d3d9/tests: Test blocked texture creation restrictions. 2013-09-06 17:25:08 +02:00
Stefan Dösinger 80638b6d2f wined3d: Enforce texturing capability format restrictions on resource creation. 2013-09-06 17:25:08 +02:00
Stefan Dösinger 0cb72cdeb5 d3d9/tests: Add a DXT5 volume test. 2013-09-02 18:07:38 +02:00
Stefan Dösinger c1c2f99939 d3d9/tests: Add a volume sRGB test. 2013-08-27 21:30:03 +02:00
Stefan Dösinger 9dcca7ba8a d3d9/tests: Add UpdateTexture tests with volumes. 2013-08-27 21:30:03 +02:00
Stefan Dösinger 82b6c46006 d3d9/tests: Add a volume texture locking test. 2013-08-27 21:30:03 +02:00
Stefan Dösinger ac871305f8 wined3d: Store the mipmap level in the volume. 2013-08-22 20:15:18 +02:00
Henri Verbeet d0c9dbe763 d3d9: Always create textures for surfaces. 2013-08-20 11:50:34 +02:00
Matteo Bruni e2cf98eb76 wined3d: Implement special fog behavior for orthogonal projection matrices. 2013-07-24 11:09:31 -05:00
Henri Verbeet c57913babb d3d9/tests: Make shader bytecode static const. 2013-07-01 19:51:23 +02:00
Matteo Bruni 0141b20cee d3d9/tests: Improve cnd instruction test. 2013-06-26 18:45:41 +02:00
Matteo Bruni aeade16d62 d3d9/tests: Skip unbound_sampler_test if cube or volume textures aren't supported. 2013-06-20 22:14:36 +02:00