Commit Graph

212 Commits

Author SHA1 Message Date
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 4bc4e431c8 d3d8/tests: Prefer higher resolutions in test_reset().
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-26 23:23:37 +09:00
Józef Kucia b2e8ca902b d3d8/tests: Add test for regression in IDirect3DDevice8_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-24 22:23:47 +09:00
Józef Kucia f37a438e79 d3d8/tests: Skip test_reset() when device is initially lost.
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:43 +09:00
Michael Stefaniuc 7fee54f409 d3d8/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-21 00:23:55 +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
Stefan Dösinger 794ad86fec d3d8/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:41 +09:00
Frédéric Delanoy cdf961a0f1 d3d8/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
Matteo Bruni e8e2060697 d3d8/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 5baa8f0d18 d3d8/tests: Port test_checkdevicemultisampletype() from d3d9.
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
Stefan Dösinger 5b63c93f3e d3d8/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-20 21:18:18 +09:00
Stefan Dösinger e6cf8ba609 d3d8/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:11 +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 fbe20ab62f d3d8/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:51 +09:00
Nikolay Sivov 6410e8a771 d3d8/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:46:58 +09:00
Stefan Dösinger 6b8564d629 d3d8: Accept D3DSWAPEFFECT_COPY_VSYNC.
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
2015-10-02 15:37:38 +09:00
Stefan Dösinger 9d29be2800 d3d8/tests: Test D3DBACKBUFFER_TYPE. 2015-09-08 21:59:16 +09:00
Stefan Dösinger 76c43d8177 d3d8/tests: Add more GetBackBuffer error handling tests. 2015-09-03 21:11:08 +09:00
Stefan Dösinger 93ed5d3ba3 d3d8/tests: Test presentation parameter combinations. 2015-08-27 21:43:47 +09:00
Henri Verbeet 1e439a5ed1 d3d8/tests: Port test_get_set_texture() to d3d8. 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 69047ed4f7 d3d8: Update the BackBufferCount after a successful reset. 2015-04-14 17:26:46 +09:00
Henri Verbeet 549f7b8a9c d3d8/tests: Test D3DPRESENT_PARAMETERS after a successful reset. 2015-04-14 17:26:40 +09:00
Francois Gouget f505e6fb4a Assorted spelling fixes. 2015-03-19 21:54:14 +09:00
Stefan Dösinger 3b2cf06b91 d3d8/tests: Extend the FPU setup test. 2015-02-27 21:53:46 +09:00
Michael Stefaniuc dd2dbde625 d3d8/tests: Test the return value of CreateVolumeTexture (PVS-Studio). 2015-02-23 15:26:01 +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
Stefan Dösinger 19c860499a wined3d: Filter messages generated by focus handling. 2014-12-08 14:18:43 +01:00
Stefan Dösinger c37549ef5d d3d8/tests: Test WM_SYSCOMMAND handling. 2014-12-08 14:17:29 +01:00
Stefan Dösinger e8ce1085a9 d3d8/tests: Test focus loss message filtering. 2014-12-08 14:17:20 +01:00
Stefan Dösinger 8dd44e2801 d3d8: Refuse to reset a lost device. 2014-12-02 13:05:52 +01:00
Stefan Dösinger d1bd709471 d3d8/tests: Call TestCooperativeLevel after Present. 2014-11-27 11:09:45 +01:00
Stefan Dösinger 4e8da470f8 d3d8/tests: Fix test_cursor(). 2014-11-25 19:49:41 +01:00
Stefan Dösinger dd8bf9c87d d3d8: Only one fullscreen swapchain is allowed. 2014-11-25 19:49:31 +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 b30901415a d3d8/tests: Test mode restoration on focus loss. 2014-11-19 16:41:06 +09:00
Stefan Dösinger f6f4af46db d3d8/tests: Test style changes on focus loss. 2014-11-18 14:14:45 +09:00
Stefan Dösinger 33976b4f44 d3d8/tests: Test messages on focus loss. 2014-11-18 14:14:42 +09:00
Stefan Dösinger 2b31cac692 d3d8/tests: Allow passing a resolution to reset_device. 2014-11-13 20:35:43 +09:00
Stefan Dösinger 7b7516189d d3d8/tests: Fix some wndproc comparison error messages. 2014-11-11 21:57:23 +09:00
Stefan Dösinger bd6a5de27d d3d8/tests: The device restores the mode settings from the registry. 2014-11-07 14:04:04 +09:00
Stefan Dösinger dcf7d294cc d3d8/tests: Check if the current display settings match the registry settings. 2014-11-04 21:16:16 +09:00
Matteo Bruni e16016227f d3d8/tests: Add an ATI1N entry to the test_volume_blocks test. 2014-11-04 21:16:00 +09:00
Matteo Bruni 8f3477e106 d3d8/tests: Add a test for ATI1N and ATI2N texture formats. 2014-11-04 21:15:58 +09:00
Stefan Dösinger 86168c4e90 d3d8/tests: Skip unsupported resources in test_resource_type. 2014-10-23 18:48:18 +09:00
Stefan Dösinger 94f20a6fff d3d8/tests: Use create_device in test_swvp_buffer. 2014-10-22 21:01:43 +09:00
Stefan Dösinger 1ae02b92e0 d3d8/tests: Use create_device for test_fpu_setup. 2014-10-22 21:01:41 +09:00