Józef Kucia
de3ca49952
d3d9/tests: Add test for IDirect3DDevice9Ex_ResetEx().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-24 22:23:57 +09:00
Józef Kucia
677a9349c7
d3d9/tests: Restore display rotation in test_get_adapter_displaymode_ex().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-24 22:23:54 +09:00
Józef Kucia
7d836b3f13
d3d9/tests: Add test for regression in IDirect3DDevice9_Reset().
...
This adds a test for regression introduced in
cad279449c
.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-17 11:52:37 +09:00
Henri Verbeet
53165034ba
wined3d: Unify resource preloads.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-11 12:08:58 +09:00
Józef Kucia
eaa20836d2
wined3d: Do not enable blending for edge/line antialiasing.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 23:56:50 +09:00
Józef Kucia
5a4d218563
d3d9/tests: Add test for line antialiasing blending.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-09 22:00:01 +09:00
Józef Kucia
8d032351f2
wined3d: Add WINED3D_SWAPCHAIN_ALLOW_MODE_SWITCH flag.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-03 09:56:17 -05:00
Matteo Bruni
e592b541a1
d3d9/tests: Add a vertex blending test with D3DCOLOR weights.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-01 09:57:31 -05:00
Józef Kucia
8b493d769e
wined3d: Introduce R10G10B10X2 vertex formats for D3D8/9.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-27 22:21:12 +09:00
Michael Stefaniuc
05525db806
d3d9: Use SetRect() instead of open coding it.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-14 17:40:10 +09:00
Michael Stefaniuc
080c74497d
d3d9/tests: Use SetRect() instead of open coding it.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-03 10:17:46 +09:00
Michael Stefaniuc
bcd38dec15
d3d9/tests: Use wine_dbgstr_rect() to print RECTs.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-10 20:34:04 +09:00
Józef Kucia
42fcf20221
wined3d: Implement index buffer offset.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-03 00:10:49 +09:00
Francois Gouget
c000733e90
d3d9/tests: Fix a trailing ok() '\n'.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-30 19:49:25 +09:00
Józef Kucia
bd41d53a23
d3d9: Check if valid vertex declaration is set before issuing draw call.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-24 20:03:15 +09:00
Józef Kucia
e8aa575ff6
d3d9/tests: Add some tests for draw methods.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-24 20:03:12 +09:00
Henri Verbeet
569fcd33dc
wined3d: Store shader signatures directly in struct wined3d_shader_desc.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-24 16:19:07 +09:00
Józef Kucia
e47a735f76
wined3d: Add wined3d creation flag for selecting unbound resource color.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-23 19:23:45 +09:00
Józef Kucia
d283c5b68e
d3d9: Allow to pass NULL pointers to IDirect3DDevice9_GetRenderTargetData().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 20:26:49 +09:00
Henri Verbeet
d701a76ca1
wined3d: Make wined3d_device_get_ps_consts_b() consistent with wined3d_device_get_ps_consts_f().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 10:35:55 +09:00
Henri Verbeet
0a8951d99b
wined3d: Make wined3d_device_set_ps_consts_b() consistent with wined3d_device_set_ps_consts_f().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 10:35:50 +09:00
Henri Verbeet
9c8c391146
wined3d: Make wined3d_device_get_vs_consts_b() consistent with wined3d_device_get_vs_consts_f().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 10:35:44 +09:00
Henri Verbeet
73ba87658c
wined3d: Make wined3d_device_set_vs_consts_b() consistent with wined3d_device_set_vs_consts_f().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 10:35:39 +09:00
Henri Verbeet
f69cf783df
wined3d: Pass wined3d_ivec4 structures to wined3d_device_get_ps_consts_i().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 01:06:16 +09:00
Henri Verbeet
596f707797
wined3d: Pass wined3d_ivec4 structures to wined3d_device_set_ps_consts_i().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 01:06:15 +09:00
Henri Verbeet
3ae7ab9583
wined3d: Pass wined3d_ivec4 structures to wined3d_device_get_vs_consts_i().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 01:06:15 +09:00
Henri Verbeet
ba840a4c05
wined3d: Pass wined3d_ivec4 structures to wined3d_device_set_vs_consts_i().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-18 01:06:14 +09:00
Andrey Gusev
0a9f22facc
d3d9/tests: Fix a typo in skip() message.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-14 14:39:54 +09:00
Henri Verbeet
1fe83c0d7e
wined3d: Pass wined3d_vec4 structures to wined3d_device_get_ps_consts_f().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-27 12:40:52 +09:00
Henri Verbeet
574e294181
wined3d: Pass wined3d_vec4 structures to wined3d_device_set_ps_consts_f().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-27 12:40:46 +09:00
Henri Verbeet
67ec18ba2c
wined3d: Pass wined3d_vec4 structures to wined3d_device_get_vs_consts_f().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-27 12:40:40 +09:00
Henri Verbeet
d3a3260763
wined3d: Pass wined3d_vec4 structures to wined3d_device_set_vs_consts_f().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-27 12:40:35 +09:00
Józef Kucia
64014ae3ed
wined3d: Add "layer_count" parameter to wined3d_texture_create().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-26 21:35:31 +09:00
Henri Verbeet
58a1796d83
wined3d: Don't enumerate sub-resources in wined3d_device_reset().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-21 15:34:43 +09:00
Henri Verbeet
3b96ac290d
wined3d: Allocate system memory for complete textures.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-21 14:09:39 +09:00
Henri Verbeet
f519aca8b3
wined3d: Reject sub-resource types in wined3d_check_device_format().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-19 14:56:14 +09:00
Francois Gouget
0277ba190b
d3d9/tests: Spelling fixes for a couple of ok() calls.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 15:05:06 +09:00
Henri Verbeet
82a7f1ebf2
wined3d: Implement texture DC creation on top of D3DKMTCreateDCFromMemory().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-15 12:32:25 +09:00
Henri Verbeet
cf259ea41e
d3d9/tests: Add some tests for the properties of the DC returned by surface GetDC().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-13 23:01:07 +09:00
Henri Verbeet
9e763ab92b
wined3d: Be more strict with wined3d_texture_get_dc() calls from d3d9.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-13 23:01:06 +09:00
Henri Verbeet
c3d74913b7
wined3d: Be more lenient with wined3d_texture_get_dc() calls from ddraw.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-13 23:01:06 +09:00
Stefan Dösinger
301c9a4d5c
d3d9/tests: Add a system memory miptree layout test.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-12 12:03:39 +09:00
Henri Verbeet
b8ffc4df1c
d3d9/tests: Add some more surface GetDC() tests to test_getdc().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-11 11:36:12 +09:00
Matteo Bruni
05f57dae24
d3d9/tests: Add a test for color varyings clamping.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-28 16:26:52 +09:00
Józef Kucia
1f8de0696f
d3d9: Avoid '\n' in middle of TRACE() messages.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-25 23:35:19 +09:00
Paul Gofman
1d94ec8581
d3d9/tests: Add test for D3DFMT_L8 format as render target.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-24 22:09:50 +09:00
Henri Verbeet
240912c59b
wined3d: Ignore the dirty region for swapchain presents more explicitly.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-18 12:20:49 +09:00
Henri Verbeet
198042e1d8
wined3d: Require a valid rectangle pointer if rect_count is non-zero in device_clear_render_targets().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-18 12:20:44 +09:00
Józef Kucia
c21dbb5149
wined3d: Implement depth clear in wined3d_device_clear_rendertarget_view().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-15 22:45:53 +09:00
Stefan Dösinger
aeefbdffba
wined3d: Merge wined3d_surface_map() and wined3d_volume_map().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-13 15:41:53 +09:00
Stefan Dösinger
beb8986e48
wined3d: Merge wined3d_surface_unmap() and wined3d_volume_unmap().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-10 11:26:06 +09:00
Henri Verbeet
9f51e8f77e
d3d9: Use wined3d_texture_get_sub_resource_desc() in d3d9_texture_3d_GetLevelDesc().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 13:00:47 +09:00
Henri Verbeet
63256e31b3
d3d9: Use wined3d_texture_get_sub_resource_desc() in d3d9_texture_cube_GetLevelDesc().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 12:08:16 +09:00
Henri Verbeet
47c20218b7
d3d9: Use wined3d_texture_get_sub_resource_desc() in d3d9_texture_2d_GetLevelDesc().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 12:08:14 +09:00
Henri Verbeet
352667d439
d3d9: Use wined3d_texture_get_sub_resource_desc() in d3d9_volume_GetDesc().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 12:08:12 +09:00
Henri Verbeet
7fad350ccf
d3d9: Use wined3d_texture_get_sub_resource_desc() in d3d9_surface_GetDesc().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 12:08:10 +09:00
Henri Verbeet
fc87c40c3e
d3d9: Use wined3d_texture_get_sub_resource_desc() in d3d9_device_ColorFill().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 12:08:07 +09:00
Henri Verbeet
4917b98753
d3d9: Use wined3d_texture_get_sub_resource_desc() in d3d9_device_StretchRect().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 12:08:05 +09:00
Henri Verbeet
f4c8d81489
d3d9: Use wined3d_texture_get_sub_resource_desc() in d3d9_device_GetRenderTargetData().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 12:06:42 +09:00
Stefan Dösinger
ae5931a62e
d3d9/tests: Test multisample flip.
...
Signed-off-by: Stefan Dösinger <stefandoesinger@gmx.at>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 01:50:12 +09:00
Stefan Dösinger
d71f452c4d
wined3d: Rotate through swapchain buffers.
...
Signed-off-by: Stefan Dösinger <stefandoesinger@gmx.at>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 01:50:12 +09:00
Henri Verbeet
17ce029f55
d3d9: Use wined3d_texture_get_sub_resource_parent() in d3d9_texture_3d_GetVolumeLevel().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-26 18:38:56 +09:00
Henri Verbeet
6f98e85783
d3d9: Use wined3d_texture_get_sub_resource_parent() in d3d9_texture_3d_UnlockBox().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-26 18:38:52 +09:00
Henri Verbeet
9c280ddc84
d3d9: Use wined3d_texture_get_sub_resource_parent() in d3d9_texture_3d_LockBox().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-26 18:38:48 +09:00
Henri Verbeet
74bc7c4338
d3d9: Use wined3d_texture_get_sub_resource_parent() in d3d9_texture_cube_GetCubeMapSurface().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-26 18:38:43 +09:00
Henri Verbeet
ec590c8404
d3d9: Use wined3d_texture_get_sub_resource_parent() in d3d9_texture_cube_UnlockRect().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-26 18:38:38 +09:00
Henri Verbeet
a020fe383e
d3d9: Use wined3d_texture_get_sub_resource_parent in d3d9_texture_cube_LockRect().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-24 10:33:24 +09:00
Henri Verbeet
92f1afc045
d3d9: Use wined3d_texture_get_sub_resource_parent() in d3d9_texture_2d_GetSurfaceLevel().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-24 10:33:20 +09:00
Henri Verbeet
75c3a08eb2
d3d9: Use wined3d_texture_get_sub_resource_parent() in d3d9_texture_2d_UnlockRect().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-24 10:33:16 +09:00
Henri Verbeet
8e2efc65e7
d3d9: Use wined3d_texture_get_sub_resource_parent() in d3d9_texture_2d_LockRect().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-24 10:33:12 +09:00
Henri Verbeet
a81152df36
d3d9: Use wined3d_texture_get_sub_resource_parent() in d3d9_swapchain_GetBackBuffer().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-24 10:33:07 +09:00
Henri Verbeet
bd38c16ec2
d3d9: Use wined3d_texture_get_sub_resource_parent() in device_parent_create_swapchain_texture().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-20 12:08:06 +09:00
Henri Verbeet
55f2d655ca
d3d9: Use wined3d_texture_get_sub_resource_parent() in d3d9_device_create_surface().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-20 12:08:06 +09:00
Frédéric Delanoy
77c05ebc4e
d3d9/tests: Use todo_wine_if() in tests.
...
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 01:17:25 +09:00
Henri Verbeet
3b5eca269d
wined3d: Get rid of the surface parameter to wined3d_device_parent_ops.surface_created().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:07:28 +09:00
Józef Kucia
a6e056d26a
d3d9/tests: Add test for surface format gamma correction query.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 00:37:26 +09:00
Józef Kucia
1769ea38e6
wined3d: Add support for separate sRGB formats.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 00:37:25 +09:00
Matteo Bruni
f088e46dbe
d3d11: Implement d3d11_device_CheckMultisampleQualityLevels().
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-05 20:35:00 +09:00
Henri Verbeet
04c216d798
d3d9: Pass non-NULL rectangles to wined3d_texture_blt() in d3d9_device_GetRenderTargetData().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:14 +09:00
Henri Verbeet
7b266e844e
d3d9: Pass non-NULL rectangles to wined3d_texture_blt() in d3d9_device_StretchRect().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:25:13 +09:00
Matteo Bruni
7fd7516922
d3d9/tests: Test the creation of render targets with invalid multisample settings.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 00:42:26 +09:00
Matteo Bruni
57c1f072f0
d3d9/tests: Extend test_checkdevicemultisampletype().
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 00:42:26 +09:00
Matteo Bruni
99bcae0229
wined3d: Fail texture creation when invalid multisample settings are specified.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 00:42:26 +09:00
Riccardo Bortolato
edf003771b
d3d9: Replace wined3d surface refcounting with texture refcounting.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-28 13:44:12 +09:00
Riccardo Bortolato
39549a54fc
d3d9: Implement d3d9_device_UpdateSurface() on top of wined3d_device_copy_sub_resource_region().
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-28 13:44:08 +09:00
Matteo Bruni
4c1d6d27d0
d3d9: Return one quality level when the multisampling type isn't available.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-27 23:35:32 +09:00
Henri Verbeet
ad11f38db9
wined3d: Rename the texture creation flags to WINED3D_TEXTURE_CREATE_*.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-27 12:38:54 +09:00
Henri Verbeet
cf899ac267
wined3d: Rename WINED3D_RTYPE_VOLUME_TEXTURE to WINED3D_RTYPE_TEXTURE_3D.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-27 12:38:50 +09:00
Henri Verbeet
dafaae7730
wined3d: Unify WINED3D_RTYPE_TEXTURE and WINED3D_RTYPE_CUBE_TEXTURE.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-27 12:38:46 +09:00
Stefan Dösinger
062c0a90a2
d3d9/tests: Test invalid locks with textures.
...
Signed-off-by: Stefan Dösinger <stefandoesinger@gmx.at>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 21:18:15 +09:00
Stefan Dösinger
460ae01d98
d3d9/tests: Block validation checks the surface size too.
...
Signed-off-by: Stefan Dösinger <stefandoesinger@gmx.at>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-19 00:10:45 +09:00
Stefan Dösinger
48575df7cb
wined3d: Block validation checks the surface size too.
...
Signed-off-by: Stefan Dösinger <stefandoesinger@gmx.at>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-19 00:10:42 +09:00
Józef Kucia
810423960d
d3d9/tests: Add missing space to trace() message.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-09 17:30:04 +09:00
Józef Kucia
38d2d462df
d3d9/tests: Add test for CreateDepthStencilSurfaceEx().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-09 17:30:04 +09:00
Józef Kucia
89c6a755c4
d3d9: Implement d3d9_device_CreateDepthStencilSurfaceEx().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-09 17:30:03 +09:00
Henri Verbeet
9c96a525e7
wined3d: Get rid of unused error codes.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:45:30 +01:00
Henri Verbeet
e6e0c22783
wined3d: Set WINED3D_BUFFER_DOUBLEBUFFER for managed buffers as well.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:45:22 +01:00
Józef Kucia
574bce1b2b
wined3d: Do not perform texture alpha blending for BUMPENV textures.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 11:51:34 +01:00
Stefan Dösinger
7cdb66a48b
d3d9/tests: Use a slop for test_shademode.
...
Needed on my Geforce 7300. The old test passed OK, the newly extended
test needs a slop.
Signed-off-by: Stefan Dösinger <stefandoesinger@gmx.at>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-03 20:04:09 +01:00
Józef Kucia
c3be8d748f
d3d9/tests: Add tests for FFP texture blending.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-10 00:12:44 +09:00
Matteo Bruni
66d8e38ba4
wined3d: Handle D3DRS_SRGBWRITEENABLE in clears when ARB_framebuffer_sRGB is not supported.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:51:06 +09:00
Matteo Bruni
787a2716e1
wined3d: Respect D3DRS_SRGBWRITEENABLE in clears.
...
This only handles the case where ARB_framebuffer_sRGB and
EXT_texture_sRGB_decode are supported by the GL implementation.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:51:05 +09:00
Vincent Povirk
7578bca0c0
d3d9/tests: Accept CURSOR_SUPPRESSED in cursor flags.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 00:12:52 +09:00
Henri Verbeet
af196e5f25
dxgi: Implement dxgi_output_GetDesc().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-25 13:21:47 +09:00
Stefan Dösinger
04b41ade76
d3d9/tests: Multisampled render targets are zeroed on creation.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:21 +09:00
Matteo Bruni
59d405b473
d3d9/tests: Improve the shade mode test.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-13 22:54:05 +09:00
Józef Kucia
b83beb18a2
d3d9: Use wined3d_resource_{map, unmap}() instead of wined3d_texture_{map, unmap}().
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 22:02:23 +09:00
Riccardo Bortolato
96dd793756
wined3d: Introduce wined3d_texture_release_dc().
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:29 +09:00
Riccardo Bortolato
a2f2d238d4
wined3d: Introduce wined3d_texture_get_dc().
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:29 +09:00
Riccardo Bortolato
3e491662ba
wined3d: Introduce wined3d_rendertarget_view_create_from_sub_resource().
...
Initial usage in d3d9.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:28 +09:00
Henri Verbeet
e855837abb
d3d9/tests: Introduce a helper function to test for WARP.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 20:57:47 +09:00
Riccardo Bortolato
3b02ae89a8
d3d9: Replace wined3d_surface_get_render_target_data with wined3d_texture_blt in d3d9_device_GetRenderTargetData.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 19:19:17 +09:00
Michael Stefaniuc
4fb840b614
d3d9/tests: Test the return value of CreateDepthStencilSurface().
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-22 23:34:48 +09:00
Riccardo Bortolato
1745c5f960
d3d9: In surface_init check for GetDC supported at texture level (avoid using a subresource).
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-22 17:31:58 +09:00
Riccardo Bortolato
46b717c509
d3d9: Avoid using a wined3d_surface in get_desc calls inside d3d9_device_StretchRect.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-22 17:31:50 +09:00
Matteo Bruni
8075101480
d3d9/tests: Extend the shadow test a bit.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 22:42:11 +09:00
Matteo Bruni
d6e4064596
d3d9/tests: Extend the INTZ test a bit.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 22:42:04 +09:00
Riccardo Bortolato
1da007e75d
d3d9: Replace wined3d_surface_blt with wined3d_texture_blt in d3d9_device_StretchRect.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 01:04:32 +09:00
Riccardo Bortolato
f3c69e40dc
d3d9: Replace wined3d_surface_get_resource with wined3d_texture_get_sub_resource in d3d9_device_ColorFill.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 01:04:32 +09:00
Riccardo Bortolato
8f03c4413b
d3d9: Replace wined3d_surface_preload with wined3d_texture_preload.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 01:04:31 +09:00
Riccardo Bortolato
6671535dc3
wined3d: Make wined3d_device_set_cursor_properties work with wined3d_texture and sub_resource_index.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:38 +09:00
Riccardo Bortolato
53f795af0a
wined3d: Make wined3d_swapchain_get_front_buffer_data work with wined3d_texture and sub_resource_idx.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:38 +09:00
Riccardo Bortolato
9875ad2cc3
d3d9: Call wined3d_swapchain_get_front_buffer_data instead of wined3d_device_get_front_buffer_data in d3d9_device_GetFrontBuffer.
...
Removed the now unused wined3d_device_get_front_buffer_data from wined3d.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:38 +09:00
Henri Verbeet
51b9aba9cc
d3d9: Simplify d3d9_device_CheckDeviceState().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-16 17:59:52 +09:00
Stefan Dösinger
59ec72879f
wined3d: Remove wined3d_device_present.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-15 19:20:29 +09:00
Nikolay Sivov
6c2bda6e33
d3d9/tests: Use BOOL variable for ShowCursor return value (PVS-Studio).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-14 12:47:18 +09:00
Matteo Bruni
f63386f43e
d3d9/tests: Uninitialized varyings tests.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 22:24:04 +09:00
Riccardo Bortolato
9b02e116bd
d3d9: Don't use a wined3d_surface in d3d9_surface_GetDesc.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 23:34:56 +09:00
Riccardo Bortolato
736ca38d11
d3d9: Make use of wined3d_texture_unmap in d3d9_surface_UnlockRect.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 23:34:56 +09:00
Riccardo Bortolato
df1101ff68
d3d9: Make use of wined3d_texture_map in d3d9_surface_LockRect.
...
Also store wined3d_texture and sub_resource_idx in d3d9_surface.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 23:34:56 +09:00
Riccardo Bortolato
9c00f968d6
d3d8: Make use of wined3d_texture_map in d3d8_surface_LockRect.
...
Pass wined3d_texture and sub_resource idx to device_parent_surface_created callback.
Store wined3d_texture and sub_resource in d3d8_surface.
Also updated d3d9, d3d11, ddraw callbacks accordingly.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 23:34:56 +09:00
Matteo Bruni
742d4df55b
d3d9/tests: Use the new readback helpers in test_pointsize().
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Matteo Bruni
b8225d0a6a
d3d9/tests: Add helpers to avoid multiple readbacks of the render target surface.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Matteo Bruni
171352b901
d3d9/tests: Test uninitialized texture varyings with transformed vertices.
...
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Matteo Bruni
7ee0578019
d3d9/tests: Fix color_match().
...
Clang on OS X complains about calling abs() on an unsigned value.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 21:00:38 +09:00
Riccardo Bortolato
33bb9e9610
wined3d: Don't pass a wined3d_volume to device_volume_created callback anymore.
...
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 21:00:07 +09:00
Riccardo Bortolato
fca636a01c
d3d9: Don't use a wined3d_volume in d3d9_volume_GetDesc.
...
finally removed the wind3d_volume pointer from d3d9_volume.
Also removed wined3d_volume_get_resource.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:59:58 +09:00
Riccardo Bortolato
8dd86823fd
d3d9: Make use of wined3d_texture_unmap in d3d9_volume_UnlockBox.
...
Also removed wined3d_volume_unmap from wined3d public api.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:59:46 +09:00
Riccardo Bortolato
b9cc2859fe
d3d9: Make use of wined3d_texture_map in d3d9_volume_LockBox.
...
Also removed wined3d_volume_map from wined3d public api.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 20:59:32 +09:00
Riccardo Bortolato
9621737c8e
wined3d: Pass wined3d_texture and sub_resource idx to device_volume_created callback.
...
Store wined3d_texture and sub_resource in d3d8_volume.
Updated the d3d8_volume_LockBox to make use of wined3d_texture_map.
Also updated d3d9, d3d11, ddraw callbacks accordingly.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
2015-10-07 21:28:52 +09:00
Riccardo Bortolato
1d1487105d
wined3d: Pass a wined3d_box to wined3d_surface_map..
...
Introduced a new surface_check_block_align function that accepts a
wined3d_box, eventually the old _rect version will be completely
replaced.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
2015-10-07 21:28:51 +09:00
Stefan Dösinger
178d0030a2
d3d9/tests: Port test_flip to d3d9.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
2015-10-06 19:23:32 +09:00
Andrey Gusev
425160ce85
d3d9: TRACE fixes.
2015-09-18 14:57:38 +02:00
Gerald Pfeifer
601aa570f1
d3d9: Avoid shift overflow in render_state_test_data_init.
...
Same patch as just a minute ago, alas fro d3d9 instead of d3d8.
Gerald
2015-09-08 21:59:17 +09:00
Stefan Dösinger
2936e4ac54
wined3d: Remove wined3d_backbuffer_type.
2015-09-08 21:59:16 +09:00
Stefan Dösinger
2e8e2da5ee
d3d9/tests: Test D3DBACKBUFFER_TYPE.
2015-09-08 21:59:16 +09:00
Stefan Dösinger
fa0041954f
wined3d: Return a texture from the swapchain resource creation callback.
2015-09-04 20:01:05 +09:00
Stefan Dösinger
fc987aaaf6
d3d9/tests: Add more GetBackBuffer error handling tests.
2015-09-03 21:11:08 +09:00
Stefan Dösinger
feb35006f5
wined3d: Remove wined3d_device_get_back_buffer.
2015-09-03 21:11:08 +09:00
Stefan Dösinger
f010e5d88a
wined3d: Return a texture from wined3d_swapchain_get_back_buffer.
2015-09-03 21:11:07 +09:00
Stefan Dösinger
0933332c73
d3d9/tests: Fix backbuffer read vs flip in test_vertex_blending.
2015-08-28 19:52:25 +09:00
Stefan Dösinger
9261bbb1a6
d3d9/tests: Test presentation parameter combinations.
2015-08-27 21:43:47 +09:00
Stefan Dösinger
c4e4647ca5
d3d9: Validate swap effect and backbuffer count.
2015-08-27 21:43:46 +09:00
Stefan Dösinger
961f4c0a25
d3d9/tests: Mark testbot depth bias results broken.
2015-08-06 21:04:30 +09:00
Henri Verbeet
0c8e78f80d
d3d9: Don't assert on invalid IDirect3DBaseTexture9 interfaces.
2015-08-04 12:21:58 +02:00
Stefan Dösinger
571462c633
d3d9/tests: Add a depth bias test.
2015-07-30 23:51:22 +02:00
Matteo Bruni
68e2503965
d3d9/tests: Don't call SetVertexShaderConstantF if vertex shaders aren't supported.
...
Also slightly change attenuation factors to try to stay away from the
(possible) implementation max size of 64.
2015-07-29 20:56:37 +02:00
Matteo Bruni
149b1549be
d3d9/tests: Fix caps check in texdepth_test().
2015-07-29 20:56:35 +02:00
Matteo Bruni
76b1461d17
d3d9/tests: Add a test for UpdateTexture.
2015-07-09 17:18:22 +09:00
Józef Kucia
399cf7e4b9
d3d9/tests: Add basic tests for vertex blending.
2015-07-03 16:51:39 +09:00
Matteo Bruni
170dca7741
wined3d: Handle per-vertex point size in the GLSL FFP replacement.
2015-06-17 20:01:19 +09:00
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
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
Matteo Bruni
5ffabcdfff
d3d9/tests: Reset texture 0 to NULL at the end of texop_test().
2013-06-20 22:14:35 +02:00
Stefan Dösinger
e030ed3c2f
d3d9/tests: Add a test for fog_start == fog_end.
2013-06-19 20:09:53 +02:00
Henri Verbeet
4de77fa23f
wined3d: Allow a custom pitch to be specified in wined3d_surface_set_mem().
2013-06-14 11:46:20 +02:00
Henri Verbeet
93b76d9a9c
d3d9: Create textures for swapchain surfaces.
2013-06-06 11:47:22 +02:00
Henri Verbeet
d6bc4fe71a
wined3d: Allow surface flags to be passed to texture creation functions.
2013-06-06 11:47:19 +02:00
Henri Verbeet
91096dd7ad
wined3d: Pass a wined3d_resource_desc structure to wined3d_texture_create_3d().
2013-06-06 11:47:07 +02:00
Henri Verbeet
b23739316c
wined3d: Pass a wined3d_resource_desc structure to wined3d_texture_create_cube().
2013-06-05 17:31:39 +02:00
Henri Verbeet
9d4cbd6195
wined3d: Pass a wined3d_resource_desc structure to wined3d_texture_create_2d().
2013-06-05 17:31:39 +02:00
Henri Verbeet
13a38e8d5e
wined3d: Pass a wined3d_resource_desc structure to device_parent_create_swapchain_surface().
2013-06-04 10:14:28 +02:00
Henri Verbeet
a4d2660c9b
wined3d: Pass a wined3d_resource_desc structure to device_parent_create_texture_surface().
2013-06-04 10:14:26 +02:00
Stefan Dösinger
30e9a37bbb
d3d9/tests: d3d9ex video memory accounting tests.
2013-05-21 19:41:39 +02:00
Stefan Dösinger
9287bb80dc
d3d: d3d9ex does not do video memory accounting for D3DPOOL_DEFAULT resources.
2013-05-20 19:08:28 +02:00
Stefan Dösinger
098105dca4
d3d9/tests: Don't test for equality in d3d9's depth_blit_test.
2013-04-24 18:26:48 +02:00
Stefan Dösinger
a4babd2ed3
d3d9/tests: Nvidia cannot handle 2x1 YUY2/UYVY surfaces.
2013-04-24 18:26:39 +02:00
Stefan Dösinger
6f8d25635d
d3d9/tests: Add r500 fp_special results.
2013-04-24 18:26:32 +02:00
Stefan Dösinger
67e57c84b9
d3d9/tests: Correct nv40 results.
2013-04-24 18:26:30 +02:00
Stefan Dösinger
6c031274c3
d3d9/tests: Fix a test failure on cards that don't support mipmapped cube textures.
2013-04-16 17:49:08 +02:00
Stefan Dösinger
39e7248d71
d3d9/tests: Test NPOT texture creation.
2013-04-16 17:48:52 +02:00
Sam Edwards
33d31a3547
wined3d: Properly handle backbuffer_width/_height=0 in wined3d_device_reset.
2013-04-11 12:06:49 +02:00
Stefan Dösinger
6d06b7f5b8
d3d9/tests: Test special fp values in local constants.
...
The HLSL compiler refuses to use NaN and +/-Inf values in pre-SM4
shaders, claiming that those are unsupported in this shader model.
However, vsa.exe happilly generates them, the required strings in the
shader code are 1.#QNAN and 1.#INF. Native d3d9 happily loads such a
shader.
2013-04-09 16:33:50 +02:00
Sam Edwards
8157aa143b
d3d9/tests: Verify window style after exiting fullscreen mode.
2013-04-03 11:33:58 +02:00
Rico Schüller
08e20e9d69
d3d9/tests: Use lower base hexadecimal values.
2013-02-25 13:03:28 +01:00
Francois Gouget
ce34094f5f
d3d9/tests: CheckDeviceType() may also return D3DERR_NOTAVAILABLE for D3DFMT_X1R5G5B5.
...
Spice's QXL driver claims to support X1R5G5B5 but then returns
NOTAVAILABLE just like the Windows Standard VGA driver does for R5G6B5
and X8R8G8B8.
2013-02-21 18:03:03 +01:00
Matteo Bruni
25d0d0876d
wined3d: Make (wined3d_)surface_depth_blt_fbo handle locations other than SFLAG_INTEXTURE.
2013-02-19 10:39:42 +01:00
Michael Stefaniuc
d86ecd4bb4
d3d9: Remove ERR() on HeapAlloc failure for small sizes known at compile time.
2013-02-07 15:48:20 +01:00
Stefan Dösinger
ddc868c4a0
d3d9/tests: Add simple DrawRectPatch tests.
2013-01-25 11:31:15 +01:00
Stefan Dösinger
149a85c2e7
d3d: Remove high level patch support.
...
No Windows driver ever exposed this, and no game uses this. The
only application that used this feature is a DirectX 8 SDK sample.
2013-01-25 11:29:41 +01:00
Stefan Dösinger
aaa11492db
wined3d: Ignore clears if count = 0 and rects != NULL.
2013-01-23 19:16:32 +01:00
Henri Verbeet
1249976eb6
wined3d: Get rid of the surface_type parameter to wined3d_check_device_format().
2013-01-17 12:22:01 +01:00
Henri Verbeet
ce912d5149
wined3d: Get rid of the surface_type parameter to wined3d_surface_create().
2013-01-17 12:21:55 +01:00
Stefan Dösinger
ab36ab7d11
d3d9/tests: Create a plain DS surface in test_reset_resources.
...
r200 does not support depth textures.
2013-01-16 20:27:09 +01:00
Henri Verbeet
31e8976910
wined3d: Get rid of the surface_type parameter to wined3d_swapchain_create().
2013-01-16 12:22:57 +01:00
Stefan Dösinger
4d5c8b6fe7
d3d9/tests: Add a software vertexprocessing buffer discard test.
2013-01-15 16:25:28 +01:00
Stefan Dösinger
c57511ce4a
d3d9: Return D3D_OK from the palette setters.
2013-01-14 17:29:59 +01:00
Henri Verbeet
3197e36413
d3d9/tests: Merge surface.c into device.c.
2013-01-11 18:14:07 +01:00
Henri Verbeet
0c9713bb65
d3d9/tests: Merge texture.c into device.c.
2013-01-11 18:14:07 +01:00
Henri Verbeet
dd9efc9852
d3d9/tests: Merge shader.c into device.c.
2013-01-11 18:14:07 +01:00
Henri Verbeet
5fd8529363
d3d9/tests: Merge query.c into device.c.
2013-01-10 12:30:18 +01:00
Henri Verbeet
afca55649d
d3d9/tests: Merge buffer.c into device.c.
2013-01-10 12:30:10 +01:00
Henri Verbeet
52a24e8297
d3d9/tests: Merge volume.c into device.c.
2013-01-10 12:30:02 +01:00
Stefan Dösinger
f3f172ce81
d3d9: Use dynamic buffers for DrawIndexedPrimitiveUP.
2012-12-19 12:53:23 +01:00
Stefan Dösinger
873603f941
d3d9: Use a dynamic buffer for DrawPrimitiveUP.
2012-12-19 12:53:20 +01:00
Stefan Dösinger
aeee527ebd
d3d9/tests: Move the clipplane + shader test inside the capability check.
2012-12-06 13:02:11 +01:00
Stefan Dösinger
b11e499c0b
d3d9/tests: Give the texture transform test a defined colorop.
2012-12-06 13:02:04 +01:00
Stefan Dösinger
320b33e57b
d3d9/tests: Skip some texture transform tests if shaders are unsupported.
2012-12-06 13:01:56 +01:00
Henri Verbeet
d0d213f7d1
d3d10core: Implement d3d10_device_IAGetIndexBuffer().
2012-11-21 13:25:57 +01:00
Henri Verbeet
2f307a14f0
d3d9/tests: Add tests for device resets in d3d9ex.
2012-11-20 11:44:36 +01:00
Henri Verbeet
84da62d993
d3d9/tests: Create the d3d9ex object in create_device().
2012-11-20 11:44:31 +01:00
Henri Verbeet
79f0b4d977
d3d9: Avoid resetting device state for d3d9ex resets.
2012-11-20 11:44:27 +01:00
Henri Verbeet
8180b9000a
d3d9/tests: Add a test for the scissor rect and viewport after SetRenderTarget() calls.
2012-11-19 11:47:08 +01:00
Henri Verbeet
b52118d53d
d3d9/tests: Also test that render states get reset in test_reset().
2012-11-16 11:40:02 +01:00
Sam Edwards
e21a4b291c
d3d9/tests: Add test for IDirect3DDevice9_Reset with BackBufferWidth/Height = 0.
2012-11-07 11:59:21 +01:00
Henri Verbeet
32f8548d67
d3d9/tests: Avoid LPDIRECT3DSURFACE9.
2012-10-30 09:49:18 +01:00
Henri Verbeet
64ffe6476e
d3d9/tests: Avoid LPDIRECT3DVERTEXBUFFER9.
2012-10-30 09:49:15 +01:00
Henri Verbeet
369fb5185f
d3d9/tests: Avoid LPDIRECT3DTEXTURE9.
2012-10-30 09:49:13 +01:00
Henri Verbeet
2bf46c60fb
wined3d: Replace the face and level parameters to device_parent_create_texture_surface() with the sub-resource index.
2012-10-25 11:48:25 +02:00
André Hentschel
31ca59f0b5
d3d9/tests: Fix copy-paste error (coverity).
2012-10-24 19:37:56 +02:00
Henri Verbeet
ddbe791d37
wined3d: Set texture_level in surface_set_texture_target() as well.
2012-10-24 11:24:22 +02:00
Henri Verbeet
8e24dbb60a
wined3d: wined3d_stateblock_apply() never fails.
2012-10-08 11:28:37 +02:00
Henri Verbeet
b69545c7da
wined3d: wined3d_stateblock_capture() never fails.
2012-10-08 11:28:32 +02:00
Henri Verbeet
adddf10cd8
wined3d: wined3d_swapchain_get_desc() never fails.
2012-10-04 14:09:55 +02:00
Henri Verbeet
5fcc1f8f70
wined3d: Just return the surface from wined3d_swapchain_get_back_buffer().
2012-10-04 14:09:50 +02:00
Henri Verbeet
2ad5808996
wined3d: wined3d_device_get_creation_parameters() never fails.
2012-10-01 23:07:55 +02:00
Henri Verbeet
6e5cf8c698
wined3d: wined3d_device_set_depth_stencil() never fails.
2012-10-01 23:07:51 +02:00
Henri Verbeet
95b4207c7f
wined3d: Just return the surface from wined3d_device_get_depth_stencil().
2012-10-01 12:11:02 +02:00
Henri Verbeet
972217fd6a
wined3d: Just return the surface from wined3d_device_get_render_target().
2012-10-01 12:10:55 +02:00
Henri Verbeet
c0f52fbf1c
wined3d: wined3d_device_set_software_vertex_processing() never fails.
2012-09-27 13:10:48 +02:00
Henri Verbeet
f9d494294a
wined3d: Just return the texture from wined3d_device_get_texture().
2012-09-27 13:10:43 +02:00
Henri Verbeet
c0a83b1d96
wined3d: wined3d_device_get_texture_stage_state() never fails.
2012-09-26 14:40:35 +02:00
Henri Verbeet
26c0714009
wined3d: wined3d_device_set_texture_stage_state() never fails.
2012-09-26 14:40:33 +02:00
Henri Verbeet
6e4c40689c
wined3d: Just return the shader from wined3d_device_get_pixel_shader().
2012-09-25 11:19:11 +02:00
Henri Verbeet
fc711d4955
wined3d: wined3d_device_set_pixel_shader() never fails.
2012-09-25 11:19:07 +02:00
Henri Verbeet
6909b5143b
wined3d: Just return the shader from wined3d_device_get_vertex_shader().
2012-09-24 09:58:06 +02:00
Henri Verbeet
b97ec7ae0c
wined3d: wined3d_device_set_vertex_shader() never fails.
2012-09-24 09:58:03 +02:00
Henri Verbeet
2f03ad1a40
wined3d: Just return the declaration from wined3d_device_get_vertex_declaration().
2012-09-21 10:53:10 +02:00
Henri Verbeet
01918d05ed
wined3d: wined3d_device_set_vertex_declaration() never fails.
2012-09-21 10:53:06 +02:00
Henri Verbeet
de1ae1eb8a
wined3d: wined3d_device_get_scissor_rect() never fails.
2012-09-19 23:54:59 +02:00
Henri Verbeet
2de9fc640b
wined3d: wined3d_device_set_scissor_rect() never fails.
2012-09-19 23:54:56 +02:00
Henri Verbeet
62670c7ba5
wined3d: wined3d_device_get_sampler_state() never fails.
2012-09-19 13:04:52 +02:00
Henri Verbeet
0d96be2c20
wined3d: wined3d_device_set_sampler_state() never fails.
2012-09-19 13:04:48 +02:00
Henri Verbeet
343974e2fd
wined3d: wined3d_device_get_material() never fails.
2012-09-18 10:18:51 +02:00
Henri Verbeet
2669feeb8c
wined3d: wined3d_device_set_material() never fails.
2012-09-18 10:18:42 +02:00
Henri Verbeet
90bd04c6b6
wined3d: wined3d_device_multiply_transform() never fails.
2012-09-14 15:43:20 +02:00
Henri Verbeet
706ece827b
wined3d: wined3d_device_get_transform() never fails.
2012-09-12 12:46:12 +02:00
Henri Verbeet
f79bbc767d
wined3d: wined3d_device_set_transform() never fails.
2012-09-12 12:46:07 +02:00
Henri Verbeet
d601a0dede
wined3d: wined3d_device_get_render_state() never fails.
2012-09-11 18:03:57 +02:00
Henri Verbeet
75cec973d5
wined3d: wined3d_device_set_render_state() never fails.
2012-09-11 18:03:53 +02:00
Henri Verbeet
3569b6ccd2
wined3d: wined3d_device_get_viewport() never fails.
2012-09-10 11:40:19 +02:00
Henri Verbeet
64aae8cf02
wined3d: wined3d_device_set_viewport() never fails.
2012-09-10 11:40:14 +02:00
Henri Verbeet
c8f4ca315e
wined3d: Just return the buffer from wined3d_device_get_index_buffer().
2012-09-06 15:45:32 +02:00
Henri Verbeet
a3e28f6ce5
wined3d: wined3d_device_set_index_buffer() never fails.
2012-09-06 15:45:32 +02:00
Henri Verbeet
8fd7d3a2b3
wined3d: Just return the swapchain from wined3d_device_get_swapchain().
2012-09-05 11:48:04 +02:00
Jacek Caban
9bb70e2739
d3d9/tests: Use proper helpers for iface calls.
2012-08-28 14:41:10 +02:00
Michael Stefaniuc
b410bc3a1a
d3d9/tests: Simplify some logic operations.
2012-08-17 16:25:58 +02:00
Henri Verbeet
09443f14e7
wined3d: Enable "AlwaysOffscreen" by default.
2012-07-19 15:43:59 +02:00
Henri Verbeet
0821c8024b
wined3d: Merge the device parent create_rendertarget() and create_depth_stencil() handlers.
2012-07-11 09:57:07 -05:00
Henri Verbeet
8ad98cdbee
wined3d: Get rid of the "discard" parameter to device_parent_create_depth_stencil().
2012-07-10 10:39:42 -05:00
Henri Verbeet
9b74ebd794
wined3d: Get rid of the "lockable" parameter to device_parent_create_rendertarget().
2012-07-10 10:39:34 -05:00
Henri Verbeet
73eceafb17
d3d9: Implement d3d9_device_ResetEx().
2012-07-09 15:04:18 -04:00
Henri Verbeet
c98725ccc3
d3d9: Introduce a helper function to create D3DPRESENT_PARAMETERS from a wined3d_swapchain_desc.
2012-07-03 14:56:34 +02:00