Commit Graph

1595 Commits

Author SHA1 Message Date
Matteo Bruni 4611ad8bef d3d9/tests: Test the default colors for fixed function vertex processing. 2015-06-12 21:23:12 +09:00
Matteo Bruni 3c7e48a132 d3d9/tests: Test the default diffuse color for vertex shaders. 2015-06-12 21:23:12 +09:00
Matteo Bruni 81935797a1 d3d9/tests: Add a test for reordering texture coordinates via D3DTSS_TEXCOORDINDEX. 2015-06-11 19:34:54 +09:00
Stefan Dösinger 4d8bfe190c d3d9/tests: Test multisample mismatch. 2015-06-10 23:25:05 +09:00
Matteo Bruni 386b5ded61 d3d9/tests: Add more tests for point size. 2015-06-05 16:52:54 +09:00
Stefan Dösinger 87bf9c99b8 d3d9/tests: Avoid invalid framebuffer configrations in resz_test. 2015-05-19 22:56:05 +09:00
Matteo Bruni 40ce3d16e8 d3d9/tests: Add spotlight and light range tests. 2015-04-29 17:02:16 +09:00
Sebastian Lackner cf9c3fed18 d3d9/tests: Fix compile error with gcc 4.9. 2015-04-28 15:36:21 +09:00
Stefan Dösinger 7109bebd02 wined3d: Move volume DXTn handling to apply_format_fixups. 2015-04-27 15:07:42 +09:00
Matteo Bruni 1e494a69c1 d3d9/tests: Add a specular lighting test. 2015-04-24 19:08:04 +09:00
Matteo Bruni b963c73abb wined3d: Introduce D3D7+ normal matrix computation. 2015-04-24 19:07:52 +09:00
Matteo Bruni 92cb56a2f8 d3d9/tests: Add a lighting test with non-affine worldview matrix. 2015-04-22 23:23:57 +09:00
Henri Verbeet ca00d72da3 d3d9/tests: Release "d3d9ex" after we're done with it in test_wndproc() (Valgrind). 2015-04-21 22:21:48 +09:00
Henri Verbeet dc53f6c2e6 wined3d: Use the display format if WINED3DFMT_UNKNOWN is passed as backbuffer format for windowed mode resets. 2015-04-15 22:21:58 +09:00
Henri Verbeet 3ccac1a71f d3d9: Update the backbuffer D3DPRESENT_PARAMETERS after a successful reset. 2015-04-14 17:26:44 +09:00
Henri Verbeet c78312ad08 d3d9: Merge most of d3d9_device_Reset() and d3d9_device_ResetEx(). 2015-04-14 17:26:42 +09:00
Henri Verbeet af438d451c d3d9/tests: Test D3DPRESENT_PARAMETERS after a successful reset. 2015-04-14 17:26:36 +09:00
Henri Verbeet f35cc97911 d3d10core/tests: Port the d3d9 vPos test to d3d10. 2015-03-31 18:49:28 +09:00
Henri Verbeet 94967c28b9 wined3d: Add support for half-integer pixel centers.
Like in OpenGL and Direct3D 10+.
2015-03-30 19:10:29 +09:00
Matteo Bruni 2f710d72bb d3d9/tests: Add more lighting tests. 2015-03-27 20:40:38 +09:00
Henri Verbeet 1b08196c5a wined3d: Implement d3d10 style instance data step rates. 2015-03-24 17:41:06 +09:00
Henri Verbeet 88f230b56e d3d10core: Also pass unused input layout elements to wined3d.
While these won't be used by the shader, they potentially affect the
calculated offset for WINED3D_APPEND_ALIGNED_ELEMENT elements.
2015-03-23 22:59:12 +09:00
Francois Gouget f505e6fb4a Assorted spelling fixes. 2015-03-19 21:54:14 +09:00
Stefan Dösinger 462346ac83 d3d9/tests: Extend the colorfill test. 2015-03-18 21:03:38 +09:00
Stefan Dösinger c5fdc1670b d3d9/tests: Relax the fog range test a bit. 2015-03-13 22:28:29 +09:00
Stefan Dösinger d25cc9695b d3d9: Correct ColorFill validation. 2015-03-13 21:57:33 +09:00
Stefan Dösinger cdb7e825ce d3d9/tests: Add a test for signed formats. 2015-03-10 21:43:28 +09:00
Michael Stefaniuc 3730c99c28 d3d9/tests: Remove no-op binary & with all 1's (PVS-Studio). 2015-03-06 20:32:05 +09:00
Michael Stefaniuc 148d6e3c10 d3d9/tests: Actually test some return values (PVS-Studio). 2015-03-04 21:50:41 +09:00
Stefan Dösinger 28a9d6324a d3d9/tests: Extend the FPU setup test.
Games created by GameMaker modify the FPU control word to enable
division by zero exceptions. The game Risk of Rain, which is written
with GameMaker, furthermore sets fogstart == fogend, which triggers an
exception when the GL driver attempts to calculate 1 / (fogend -
fogstart). This test adds some evidence that we are not supposed to
temporarily restore the FPU CW if D3DCREATE_FPU_PRESERVE is used.
2015-02-27 21:53:33 +09:00
Matteo Bruni d423e06223 d3d9/tests: Move a Present out of the loops in fog_with_shader_test(). 2015-02-20 22:53:23 +09:00
Matteo Bruni acbb387753 d3d9/tests: Test upload of user memory textures. 2015-02-20 22:53:19 +09:00
Matteo Bruni 2aed2c3a15 d3d9/tests: Allow more alternative results in the ATI1N test. 2015-02-19 17:51:20 +09:00
Stefan Dösinger f75d1b0c2f d3d/tests: Geforce8+ GPUs abs() table fog. 2015-02-13 22:37:07 +09:00
Stefan Dösinger fd218b93d0 d3d9/tests: Test rhw depth clip with z enabled but no depth buffer set. 2015-02-12 22:19:48 +09:00
Stefan Dösinger 3b2c642163 d3d9/tests: Test rhw table fog z vs rhw.
The Z disable part of the test is technically not necessary because the
fog coordinate is written before applying the projection matrix. I've
nevertheless included it because this is not immediately obvious and fog
is the only place where the vertex Z matters if depth test and depth
clipping are disabled.
2015-02-12 22:19:02 +09:00
Matteo Bruni 30f4d91906 d3d9/tests: Add a test for POSITIONi shader input/outputs. 2015-02-09 22:05:53 +09:00
Stefan Dösinger 63d52c7317 d3d/tests: Show that WM_SYSCOMMAND(SC_RESTORE) is delivered only once. 2015-01-28 11:06:56 +01:00
Stefan Dösinger 3ef1d6bcd9 wined3d: Pass WM_SYSCOMMAND(SC_RESTORE) to DefWindowProc. 2015-01-28 11:06:48 +01:00
Axel Davy b83825509e d3d9/tests: Fix test_3dc_formats getPixelColor check.
getPixelColor should be called before Present, because the device
swapchain was created with discard mode.
2015-01-08 14:03:15 +01:00
Axel Davy fc84368f87 d3d9/tests: Fix volume_dxt5_test getPixelColor check.
getPixelColor should be called before Present, because the device
swapchain was created with discard mode.
2015-01-08 14:03:06 +01:00
Matteo Bruni 6f89df2fb4 d3d9/tests: Remove a couple duplicate lines. 2015-01-06 12:34:07 +01:00
Henri Verbeet ea534c9ab4 wined3d: Allow initial texture contents to be specified with wined3d_texture_create(). 2015-01-05 20:15:35 +01:00
Michael Stefaniuc 51406b471a d3d9: Don't assert for shaders with the wrong vtbl. 2014-12-16 11:39:40 +01:00
Henri Verbeet 3b3b74510b d3d9: Calculate texture levels in d3d9 instead of wined3d. 2014-12-10 19:32:15 +01:00
Stefan Dösinger 19c860499a wined3d: Filter messages generated by focus handling. 2014-12-08 14:18:43 +01:00
Stefan Dösinger f217636e2d d3d9/test: Test WM_SYSCOMMAND handling. 2014-12-08 14:17:22 +01:00
Stefan Dösinger 0c55b9d2b3 d3d9/tests: Test focus loss message filtering in d3d9ex. 2014-12-08 14:17:13 +01:00
Stefan Dösinger 36553d862b d3d9/tests: Test focus loss message filtering. 2014-12-08 14:17:09 +01:00
Stefan Dösinger aa9bc4c509 d3d9: Refuse to reset a lost device. 2014-12-02 13:05:48 +01:00
Stefan Dösinger 871fc4a38f d3d/tests: Rename fog_interpolation_test for consistency. 2014-11-27 13:27:24 +01:00
Stefan Dösinger 96519f9be9 d3d/tests: Table fog does not abs the fog coordinate. 2014-11-27 13:27:21 +01:00
Stefan Dösinger cfd741c6b6 d3d/tests: Show that the vfog abs is not a property of D3DFOG_LINEAR. 2014-11-27 13:27:17 +01:00
Stefan Dösinger c9b10beb36 wined3d: Vertex fog uses the absolute eye position z. 2014-11-27 13:27:13 +01:00
Alexandre Julliard 099bc21df7 d3d9/tests: Don't require a WM_MOVE message. 2014-11-26 20:40:49 +01:00
Stefan Dösinger abf44708a4 d3d9/tests: Fix test_cursor(). 2014-11-25 19:49:42 +01:00
Stefan Dösinger 8b6a7a9c02 d3d9: Only one fullscreen swapchain is allowed. 2014-11-25 19:49:30 +01:00
Stefan Dösinger f4d520d6e2 wined3d: Don't minimize hidden windows. 2014-11-20 22:31:26 +09:00
Stefan Dösinger 09a91231a6 wined3d: Set the device window size on focus window activation. 2014-11-20 22:31:13 +09:00
Stefan Dösinger f6dde70624 wined3d: Restore the display mode on focus change. 2014-11-19 17:56:44 +09:00
Stefan Dösinger 1851e2618b d3d9/tests: Test mode restoration on focus loss. 2014-11-19 16:41:03 +09:00
Stefan Dösinger ef60604d44 d3d9/tests: Test style changes on focus loss. 2014-11-18 14:14:37 +09:00
Stefan Dösinger 9bcd9722f1 d3d9/tests: Test messages on focus loss. 2014-11-18 14:14:32 +09:00
Henri Verbeet 1c116c3527 d3d10core/tests: Port alpha_test() to d3d10core. 2014-11-17 19:30:40 +09:00
Stefan Dösinger 32450ee61d d3d9/tests: Allow passing a resolution to reset_device in d3d9ex. 2014-11-12 20:07:56 +09:00
Stefan Dösinger 38548df04b d3d/tests: Test fog interpolation. 2014-11-12 20:07:56 +09:00
Stefan Dösinger 6ad7d50958 d3d9/tests: Allow passing a resolution to reset_device. 2014-11-11 21:57:27 +09:00
Stefan Dösinger 5e369853f1 d3d9/tests: Fix some wndproc comparison error messages. 2014-11-11 21:57:19 +09:00
Stefan Dösinger 7fb22f502e d3d9/tests: The device restores the mode settings from the registry. 2014-11-07 14:04:00 +09:00
Stefan Dösinger 40c2fc215d d3d9/tests: Check if the current display settings match the registry settings. 2014-11-04 21:16:13 +09:00
Matteo Bruni d690aaeeb6 d3d9/tests: Add an ATI1N entry to the test_volume_blocks test. 2014-11-04 21:15:59 +09:00
Matteo Bruni da54670a94 d3d9/tests: Add a test for ATI1N and ATI2N texture formats. 2014-11-04 21:15:58 +09:00
Henri Verbeet 875a7c5426 wined3d: Use the input signature to setup SM4 pixel shader input semantics. 2014-11-04 16:54:35 +09:00
Stefan Dösinger 6334bf09b7 d3d9/tests: Skip unsupported resources in test_resource_type. 2014-10-23 18:48:20 +09:00
Stefan Dösinger 8633f7f123 d3d9/tests: Use create_device for test_swvp_buffer. 2014-10-22 21:01:39 +09:00
Stefan Dösinger d5b2e8af39 d3d9/tests: Use create_device in test_fpu_setup (v2). 2014-10-22 21:01:35 +09:00
Stefan Dösinger ee0733863e d3d9/tests: Add style and size tests for D3DCREATE_NOWINDOWCHANGES. 2014-10-21 18:47:42 +09:00
Stefan Dösinger 80cbd276e0 d3d9/tests: Port test_window_style to d3d9ex. 2014-10-17 15:50:11 +09:00
Stefan Dösinger 5c33ffaf67 d3d9/tests: Port wndproc tests to d3d9ex. 2014-10-17 15:50:04 +09:00
Matteo Bruni 894298d502 d3d9/tests: Port the unsupported shaders test to D3D9Ex. 2014-10-16 21:23:07 +09:00
Stefan Dösinger a426d335a4 d3d9/tests: Allow a width and height to be passed to create_device() in the d3d9ex tests. 2014-10-15 21:29:29 +09:00
Matteo Bruni d897db7605 d3d9/tests: Add some tests for shaders using more than the maximum number of supported constants. 2014-10-14 14:00:50 +09:00
Henri Verbeet 1bec6ab0bc d3d9/tests: Use create_device() in test_scissor_size(). 2014-10-09 17:36:22 +02:00
Henri Verbeet 2291c72caf d3d9/tests: Allow a width and height to be passed to create_device(). 2014-10-09 17:36:22 +02:00
Stefan Dösinger 537febf2e8 d3d9/tests: Don't load user32 functions at runtime. 2014-10-07 20:22:08 +02:00
Henri Verbeet 97856bcfee wined3d: Replace wined3d_surface_update_desc() with wined3d_texture_update_desc(). 2014-09-29 10:37:35 +02:00
Henri Verbeet a3daed9604 d3d10core: Implement d3d10_device_GetPredication(). 2014-09-19 10:49:24 +02:00
Henri Verbeet 74ab8e8ce9 wined3d: Do not increment the reference count of the returned buffer in wined3d_device_get_stream_source().
None of the other getters increment the reference count either.
2014-09-18 13:06:32 +02:00
Henri Verbeet 736b9e1c1c wined3d: Get rid of wined3d_device_color_fill(). 2014-08-22 12:53:26 +02:00
Henri Verbeet 07985a8c38 wined3d: Use rendertarget views for depth/stencil buffers instead of surfaces.
I don't think the difference between d3d10 depth/stencil and rendertarget
views is large enough to justify a separate type. Unfortunately that does make
the name "wined3d_rendertarget_view" slightly awkward.
2014-08-22 12:53:11 +02:00
Henri Verbeet b005ad6f90 wined3d: Use rendertarget views for color output instead of surfaces. 2014-08-21 12:24:42 +02:00
Henri Verbeet 888b278096 d3d9: wined3d_device_get_available_texture_mem() returns a UINT. 2014-08-18 12:47:10 +02:00
Henri Verbeet d1d48d3194 d3d9: The "forwardReference" field in struct d3d9_surface is always a texture, if set. 2014-08-18 12:47:01 +02:00
Henri Verbeet c5e8115ee2 d3d9: Volumes are always part of a texture. 2014-08-15 17:04:10 +02:00
Henri Verbeet ff694bf47d d3d9: Return E_OUTOFMEMORY on HeapAlloc() failure in device_parent_surface_created(). 2014-08-15 17:04:03 +02:00
Stefan Dösinger 341db6d8d3 wined3d: Remove wined3d_texture_set/get_priority. 2014-07-16 16:10:05 +02:00
Stefan Dösinger cf11933701 wined3d: Remove wined3d_buffer_set/get_priority. 2014-07-16 16:10:01 +02:00
Henri Verbeet 30437f9fe4 d3d9/tests: Get rid of struct vertex_floatcolor. 2014-07-16 11:56:01 +02:00
Henri Verbeet 0cae65d494 d3d9/tests: Get rid of struct vertex_shortcolor. 2014-07-16 11:55:59 +02:00
Henri Verbeet 1ccf7f5e74 d3d9/tests: Get rid of struct nvertex. 2014-07-16 11:55:57 +02:00
Henri Verbeet 86ba5b604e d3d9/tests: Get rid of struct tvertex. 2014-07-16 11:55:55 +02:00
Henri Verbeet 51f5bc903a d3d9/tests: Get rid of struct vertex. 2014-07-16 11:55:52 +02:00
Stefan Dösinger 9329e996b4 d3d9/tests: Fix some ok() call style issues. 2014-07-09 14:43:56 +02:00
Stefan Dösinger 509c49bdb5 d3d9/tests: Add a test for SetPriority and GetPriority. 2014-07-09 14:43:40 +02:00
Stefan Dösinger eb0daf08c6 d3d9: Ignore SetPriority and GetPriority calls on surfaces. 2014-07-09 14:43:30 +02:00
Henri Verbeet ae25b1eca5 d3d9: Improve d3d9_device_CheckDeviceState() a little. 2014-06-30 22:04:53 +02:00
Henri Verbeet d50350886a d3d9: Check the device status in present calls. 2014-06-27 10:37:39 +02:00
Henri Verbeet 09fda3b805 d3d9: Improve d3d9_device_TestCooperativeLevel(). 2014-06-27 10:37:36 +02:00
Henri Verbeet 04acac207a d3d9/tests: Add some lost device tests. 2014-06-27 10:37:23 +02:00
Matteo Bruni b42fe709d6 wined3d: Validate and handle query size parameter. 2014-06-16 13:56:35 +02:00
Matteo Bruni 7162820845 d3d9/tests: Test GetData behavior with various size values. 2014-06-16 13:56:33 +02:00
Stefan Dösinger acf890e2b2 d3d9/tests: Add a test for D3DUSAGE_WRITEONLY.
This test seeks to demonstrate that readbacks of WRITEONLY resources
still work, even after a resource has been used for rendering.
2014-06-11 16:14:45 +02:00
Alexandre Julliard 64082aebc5 d3d9: Remove unnecessary DllMain implementation. 2014-05-15 19:04:50 +02:00
Henri Verbeet 301a17d556 d3d9/tests: Merge vertexdeclaration.c into device.c. 2014-05-02 14:08:42 +02:00
Henri Verbeet 23eed88fde wined3d: Implement support for per-stage texture stage constants.
This patch is loosely based on an earlier patch by Christian Costa.
2014-04-23 15:00:43 +02:00
Matteo Bruni a1784d9ed9 wined3d: Add support for timestamp queries. 2014-04-17 13:53:00 +02:00
Matteo Bruni cdedb06af7 d3d9/tests: Add a test for timestamp queries. 2014-04-17 13:52:49 +02:00
Henri Verbeet b97570fe1c d3d9/tests: Properly declare matrices. 2014-04-14 20:19:01 +02:00
Henri Verbeet 3ae4889eeb d3d9/tests: Get rid of some pointless BeginScene() checks. 2014-04-14 20:19:00 +02:00
Henri Verbeet 74a2bd084f d3d9/tests: Make the sanity test a normal test. 2014-04-11 10:42:06 +02:00
Henri Verbeet 9f6765f759 d3d9/tests: Use a separate device for depth_clamp_test(). 2014-04-11 10:42:04 +02:00
Henri Verbeet 7273d52bcd d3d9/tests: Use a separate device for stretchrect_test(). 2014-04-11 10:42:01 +02:00
Henri Verbeet a8f3708322 d3d9/tests: Use a separate device for lighting_test(). 2014-04-11 10:41:59 +02:00
Henri Verbeet 32919f40d0 d3d9/tests: Use a separate device for clear_test(). 2014-04-11 10:41:55 +02:00
Henri Verbeet 9595526932 d3d9/tests: Use a separate device for color_fill_test(). 2014-04-10 13:53:46 +02:00
Henri Verbeet b7f323e8c6 d3d9/tests: Use a separate device for fog_test(). 2014-04-10 13:53:44 +02:00
Henri Verbeet 0453e4e44a d3d9/tests: Use a separate device for test_cube_wrap(). 2014-04-10 13:53:41 +02:00
Henri Verbeet 8a170e9d48 d3d9/tests: Use a separate device for z_range_test(). 2014-04-10 13:53:39 +02:00
Henri Verbeet f329a2b586 d3d9/tests: Use a separate device for maxmip_test(). 2014-04-10 13:53:37 +02:00
Henri Verbeet 80c3e07c96 d3d9/tests: Use a separate device for offscreen_test(). 2014-04-09 09:23:03 +02:00
Henri Verbeet 0513d79526 d3d9/tests: Use a separate device for ds_size_test(). 2014-04-09 09:23:01 +02:00
Henri Verbeet e41a6c827f d3d9/tests: Use a separate device for alpha_test(). 2014-04-09 09:22:59 +02:00
Henri Verbeet b7977c9f6b d3d9/tests: Use a separate device for shademode_test(). 2014-04-09 09:22:57 +02:00
Henri Verbeet 91e9ca7070 d3d9/tests: Use a separate device for srgbtexture_test(). 2014-04-09 09:22:54 +02:00
Stefan Dösinger 9177261a22 d3d9/tests: Test locking of mipmap textures. 2014-04-08 19:23:20 +02:00
Henri Verbeet 813ae272b0 d3d9/tests: Use a separate device for release_buffer_test(). 2014-04-08 09:47:08 +02:00
Henri Verbeet 1abd58edea d3d9/tests: Use a separate device for float_texture_test(). 2014-04-08 09:47:07 +02:00
Henri Verbeet 63c679e651 d3d9/tests: Use a separate device for g16r16_texture_test(). 2014-04-08 09:47:06 +02:00
Henri Verbeet 9d756e0905 d3d9/tests: Use a separate device for pixelshader_blending_test(). 2014-04-08 09:47:05 +02:00
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