Matteo Bruni
9480e81719
d3d9/tests: Properly check for mipmap autogeneration support.
...
CheckDeviceFormat() returns D3DOK_NOAUTOGEN if the texture format is
otherwise 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>
2017-09-21 19:53:10 +02:00
Nikolay Sivov
a5328e51df
d3d9/tests: Some tests for D3DPRESENTFLAG_LOCKABLE_BACKBUFFER mode.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-19 13:27:32 +02:00
Nikolay Sivov
be1f61e275
d3d9/tests: Test for GetDC()-capable backbuffer created with D3DFMT_UNKNOWN format.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-18 09:22:53 +02:00
Paul Gofman
e81e14c894
d3d9/tests: Add tests for SW shaders creation in SWVP and MVP modes.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 16:58:57 +02:00
Paul Gofman
7027da7f37
d3d9/tests: Add tests for setting vertex shader constants in SWVP and MVP modes.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 16:58:52 +02:00
Henri Verbeet
d4bd150c23
d3d9/tests: Introduce a test for drawing with a destroyed window.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-02 20:20:17 +02:00
Józef Kucia
42951f3e10
d3d9/tests: Add test for invalid query types.
...
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>
2017-05-23 17:34:41 +02:00
Józef Kucia
5a03f2c430
d3d9/tests: Use ARRAY_SIZE() macro in device tests.
...
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>
2017-05-23 17:34:39 +02:00
Henri Verbeet
dfe8b7798a
wined3d: Abort on invalid instructions in shader_get_registers_used().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:30:35 +01:00
Józef Kucia
1860208f5f
d3d9: Do not decrease swapchain refcount when it is already 0.
...
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>
2017-02-13 18:50:12 +01:00
Józef Kucia
d39630fc39
d3d9: Do not decrease swapchain surface refcount when it is already 0.
...
Based on a patch by Henri Verbeet.
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>
2017-02-13 18:50:12 +01:00
Henri Verbeet
b28631f62f
d3d9/tests: Add a test for resource creation with D3DFMT_UNKNOWN.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-09 12:55:36 +01:00
Józef Kucia
6b6c6069ed
d3d9: Fix query result data for not started queries.
...
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>
2017-02-03 19:05:13 +01:00
Józef Kucia
cde106d225
d3d9/tests: Extend queries tests.
...
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>
2017-02-03 19:05:12 +01:00
Józef Kucia
07392b39fb
d3d9/tests: Accept 64-bit Windows FPU setup behavior.
...
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>
2017-01-13 16:28:00 +01:00
Józef Kucia
6664601b83
d3d9: Return D3D_OK from UnlockRect() for not locked 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>
2017-01-13 16:27:44 +01:00
Józef Kucia
52452b271e
d3d9/tests: Add more tests for UnlockRect().
...
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>
2017-01-13 16:27:40 +01:00
Józef Kucia
c1aba7cd8b
d3d9: Reject render target surfaces created for other devices.
...
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>
2017-01-03 16:18:40 +01:00
Józef Kucia
6e6b377c22
d3d9/tests: Add test for render target device mismatch.
...
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>
2017-01-03 16:18:34 +01:00
Józef Kucia
e2e0c747a8
wined3d: Filter messages for fullscreen mode changes.
...
This fixes a regression introduced by commit
d9f8cba50f
.
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-12-14 10:32:44 +01:00
Józef Kucia
37daa35737
d3d9/tests: Add test showing WM_SIZE is not sent during fullscreen mode change.
...
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-12-14 10:32:42 +01:00
Józef Kucia
6b80fe5095
d3d9/tests: Add test for occlusion query with result bigger than UINT32_MAX.
...
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-11-25 19:48:58 +01:00
Józef Kucia
89ba457011
d3d9/tests: Add test for checking buffer resource format support.
...
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-11-03 17:13:57 +01:00
Patrick Rudolph
3f7e5d647e
wined3d: Handle WINED3DFMT_FLAG_BROKEN_PITCH in wined3d_format_calculate_size().
...
The broken pitch calculation also affects the resource memory layout, as
evidenced by the mip-tree layout tests. Found using apitrace, which crashes on
Wine when playing back traces containing ATI1 textures.
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 23:23:44 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Stefan Dösinger
2e8e2da5ee
d3d9/tests: Test D3DBACKBUFFER_TYPE.
2015-09-08 21:59:16 +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
9261bbb1a6
d3d9/tests: Test presentation parameter combinations.
2015-08-27 21:43:47 +09:00
Henri Verbeet
0c8e78f80d
d3d9: Don't assert on invalid IDirect3DBaseTexture9 interfaces.
2015-08-04 12:21:58 +02:00
Stefan Dösinger
7109bebd02
wined3d: Move volume DXTn handling to apply_format_fixups.
2015-04-27 15:07:42 +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
af438d451c
d3d9/tests: Test D3DPRESENT_PARAMETERS after a successful reset.
2015-04-14 17:26:36 +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
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
Michael Stefaniuc
51406b471a
d3d9: Don't assert for shaders with the wrong vtbl.
2014-12-16 11:39:40 +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
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
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
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
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
Matteo Bruni
894298d502
d3d9/tests: Port the unsupported shaders test to D3D9Ex.
2014-10-16 21:23:07 +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
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
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
Henri Verbeet
301a17d556
d3d9/tests: Merge vertexdeclaration.c into device.c.
2014-05-02 14:08:42 +02:00
Matteo Bruni
cdedb06af7
d3d9/tests: Add a test for timestamp queries.
2014-04-17 13:52:49 +02:00
Henri Verbeet
3ae4889eeb
d3d9/tests: Get rid of some pointless BeginScene() checks.
2014-04-14 20:19:00 +02:00
Stefan Dösinger
9177261a22
d3d9/tests: Test locking of mipmap textures.
2014-04-08 19:23:20 +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
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
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
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
Stefan Dösinger
442446cdc8
d3d9/tests: Add a test for sub resource private data.
2014-02-17 20:16:27 +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
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
Andrey Gusev
e7f0a8a081
Assorted spelling and typos fixes.
2014-01-27 17:00:11 +01:00
Stefan Dösinger
58f16ddd4e
d3d9: shared_handle must be NULL in non-ex d3d9.
2013-12-10 17:32:22 +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
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
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
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
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
Henri Verbeet
c57913babb
d3d9/tests: Make shader bytecode static const.
2013-07-01 19:51:23 +02:00
Stefan Dösinger
30e9a37bbb
d3d9/tests: d3d9ex video memory accounting tests.
2013-05-21 19:41:39 +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
Sam Edwards
8157aa143b
d3d9/tests: Verify window style after exiting fullscreen mode.
2013-04-03 11:33:58 +02: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
Stefan Dösinger
ddc868c4a0
d3d9/tests: Add simple DrawRectPatch tests.
2013-01-25 11:31:15 +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
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
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
Jacek Caban
9bb70e2739
d3d9/tests: Use proper helpers for iface calls.
2012-08-28 14:41:10 +02:00
Henri Verbeet
d74a587b1b
d3d9/tests: Add a test for resource bindings after reset.
2012-06-18 17:48:26 +02:00