Henri Verbeet
1b4c55df29
ddraw/tests: Add some lost device tests.
2014-06-27 10:37:33 +02:00
Henri Verbeet
9031adfd5c
ddraw/tests: Properly declare matrices.
2014-06-16 14:00:16 +02:00
Henri Verbeet
b9bfcf2c2a
ddraw/tests: Get rid of some unused assignments.
2014-06-16 14:00:14 +02:00
Henri Verbeet
b0f1feb4f0
ddraw: Properly support creating compressed user memory surfaces.
2014-06-12 18:05:20 +02:00
Henri Verbeet
64a5dc11bf
ddraw: Clear DDSD_LINEARSIZE on uncompressed surfaces.
2014-06-12 18:05:18 +02:00
Henri Verbeet
7e33bc7a47
ddraw/tests: 64-bit ddraw only has DWORD surface pitch alignment in some cases.
2014-06-12 18:05:17 +02:00
Stefan Dösinger
e7163c802d
ddraw/tests: Test D3DVBCAPS_WRITEONLY.
2014-06-11 16:14:58 +02:00
Stefan Dösinger
544816797a
wined3d: Don't update the color table on palette changes.
2014-05-14 13:30:33 +02:00
Francois Gouget
22acc5cb30
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2014-05-09 16:28:04 +02:00
Stefan Dösinger
8ca711f428
ddraw/tests: Test palette alpha behavior.
...
What I care about here is that setting peFlags != 0 doesn't cause errors
either during ddraw palette creation or DIB section creation. peFlags
isn't an alpha channel, but P8 textures abuse it that way, hence the
name of the test. It probably has deeper meaning in DDSCL_NORMAL when
the X server is running in 8 bit paletteindexed mode, but I don't think
we really care about this.
2014-05-07 20:21:57 +02:00
Stefan Dösinger
39212d2ffb
wined3d: Remove broken gdi palette code.
2014-05-02 16:32:54 +02:00
Stefan Dösinger
7839ec874f
ddraw/tests: Test mipmap GetDC behavior.
2014-05-02 16:32:52 +02:00
Stefan Dösinger
a8bcb6c7ad
ddraw/tests: Add a test for getdc palette handling.
2014-05-02 16:32:45 +02:00
Henri Verbeet
7bdbb8c890
ddraw/tests: Add some basic material tests.
2014-04-30 14:32:29 +02:00
Henri Verbeet
174dbaf0f3
ddraw/tests: Handle the Windows 8 testbot in test_primary_palette().
2014-04-30 09:33:59 +02:00
Stefan Dösinger
8d1b66bee4
ddraw/tests: Skip the ddraw7 primary palette test if 8 bpp mode doesn't work.
2014-04-29 16:07:48 +02:00
Stefan Dösinger
7178675741
ddraw/tests: Test P8 to RGB blits.
2014-04-29 16:07:46 +02:00
Stefan Dösinger
e2bf5163ec
ddraw/tests: Add a test for mipmap palettes.
2014-04-25 20:04:43 +02:00
Henri Verbeet
ac70dd2c97
ddraw: Validate the pitch for user memory surfaces against the unaligned minimum pitch.
...
User memory surfaces have a different minimum alignment from regular surfaces.
This fixes a regression introduced by commit
9c138d772c
.
2014-04-23 15:00:35 +02:00
Henri Verbeet
1af267f613
ddraw/tests: Try to make test_coop_level_mode_set() more reliable.
...
It appears that particularly on slower setups, on occasion we don't receive
WM_DISPLAYCHANGE messages after a mode change. The theory is that the
SendMessageTimeoutW() call in X11DRV_resize_desktop() ends up hitting the
is_queue_hung() check in the send_message handler in the server, and the
PeekMessage() calls should avoid that.
2014-04-14 20:19:01 +02:00
Stefan Dösinger
ee57e19b40
ddraw: SetPrivateData(..., data = NULL, ...) is not valid.
2014-04-08 19:23:24 +02:00
Stefan Dösinger
24187d5397
ddraw/tests: Nvidia has an off-by-one rectangle handling bug.
2014-04-08 19:23:22 +02:00
Stefan Dösinger
3ff1c92dd1
ddraw/tests: Add mipmap locking tests.
2014-04-07 19:06:12 +02:00
Stefan Dösinger
bd69346d2c
ddraw/tests: Use a custom GUID for the private data tests.
2014-03-17 20:24:00 +01:00
Stefan Dösinger
4a62f81d0d
ddraw/tests: Add mipmap private data tests.
2014-03-17 20:24:00 +01:00
Stefan Dösinger
1d9ff5c43b
ddraw/tests: Test GetPrivateData size behavior.
2014-03-17 20:23:59 +01:00
Henri Verbeet
82780d6ba6
ddraw/tests: Skip the overlay tests in test_block_formats_creation() if overlays are not supported.
2014-03-11 19:39:37 +01:00
Stefan Dösinger
f6e0e1815b
ddraw/tests: Show that a failing SetPrivateData call does not clear the old contents.
2014-03-11 19:39:33 +01:00
Henri Verbeet
0b547ee750
ddraw/tests: Verify that creating a ddraw object works before running any real tests.
2014-03-06 12:01:27 +01:00
Henri Verbeet
9ee120f108
ddraw/tests: Avoid using EnumDevices() to get a supported Z buffer format.
2014-03-05 11:49:48 +01:00
Henri Verbeet
75935f9499
ddraw/tests: Add a test for creating surfaces with an explicit pitch.
2014-03-05 11:49:44 +01:00
Henri Verbeet
66aa4dcc6c
ddraw/tests: Don't trust what EnumDevices() tells us about the supported Z buffer formats.
2014-03-03 17:02:23 +01:00
Henri Verbeet
9677805ec4
ddraw/tests: Properly create offscreen plain surfaces.
...
It's not entirely clear what kind of surface is actually created when just
DDSCAPS_SYSTEMMEMORY is specified, but at the very least its format appears to
be validated against the current display mode, which is not what we want.
2014-03-03 17:02:22 +01:00
Henri Verbeet
048f4d4c26
ddraw/tests: Try 24 bpp display modes if 32 bpp modes are unavailable.
2014-03-03 17:02:20 +01:00
Francois Gouget
af0bf54bd0
ddraw/tests: Simplify the 'NT4 testbot' special case a bit.
2014-02-27 10:04:52 -06:00
Francois Gouget
4f26fb0e0b
ddraw/tests: Fix some comma versus semi-colon mixups.
2014-02-26 13:38:03 -06:00
Ken Thomases
b3acbfc878
ddraw/tests: Test that DirectDraw doesn't modify the pixel format of the window it targets.
2014-02-22 08:42:07 -06:00
Francois Gouget
4afe73ff39
ddraw/tests: Better clean up when skipping the primary palette tests.
2014-02-17 20:16:32 +01:00
Stefan Dösinger
9b8a353462
ddraw/tests: Port test_private_data to ddraw4.
2014-02-17 20:16:29 +01:00
Francois Gouget
5e7724808c
ddraw/tests: Skip the primary palette tests if the 640x480x8 mode is not supported.
2014-02-12 19:15:29 +01:00
Erich E. Hoover
68e3b18533
ddraw: Return the D3D identifier when GetDeviceIdentifier is called with no flags.
2014-02-11 20:22:30 +01:00
Erich E. Hoover
2cb3aeb7b9
ddraw: Return a DLL in szDriver for GetDeviceIdentifier.
2014-02-11 19:20:33 +01:00
Henri Verbeet
7c6ca2077f
ddraw: Allow attaching surfaces other than depth buffers in ddraw_surface4_AddAttachedSurface().
2014-01-27 17:39:47 +01:00
Henri Verbeet
fffaf03c0d
ddraw/tests: Rewrite AttachmentTest() and AttachmentTest7().
2014-01-27 17:39:47 +01:00
Andrey Gusev
e7f0a8a081
Assorted spelling and typos fixes.
2014-01-27 17:00:11 +01:00
Henri Verbeet
1318d5786f
ddraw/tests: Verify dwBackBufferCount on back buffer surfaces in test_flip().
2014-01-17 11:00:38 +01:00
Erich E. Hoover
dc184b526c
ddraw/tests: Test DirectDrawEnumerateEx with DDENUM_ATTACHEDSECONDARYDEVICES.
2014-01-09 17:39:58 +01:00
Henri Verbeet
e00cc024fd
ddraw/tests: Add some color key tests for complex surfaces.
2014-01-09 17:39:49 +01:00
Henri Verbeet
bddb0433f3
ddraw: Return DDERR_NOTONMIPMAPSUBLEVEL for ddraw_surface7_SetColorKey() on mipmap sub levels.
2014-01-09 17:39:47 +01:00
Stefan Dösinger
03b2e737d2
ddraw/tests: Add a getdc test with a custom pitch.
2014-01-08 20:03:04 +01:00
Frédéric Delanoy
6151371de3
ddraw/tests: Use BOOL type where appropriate.
2014-01-03 18:08:51 +01:00
Francois Gouget
1f26451964
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2014-01-03 11:28:16 +01:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Henri Verbeet
b9ab54a09a
ddraw/tests: Add a test for palettes on primary surfaces.
2013-12-13 12:36:11 +01:00
Stefan Dösinger
cc978c90d4
ddraw/tests: Use correct ddraw COM macros.
2013-12-12 19:21:37 +01:00
Stefan Dösinger
f53d83cf26
ddraw: Sysmem overlays are not allowed.
2013-12-12 19:21:37 +01:00
Stefan Dösinger
0fdb1aaff6
ddraw: SetSurfaceDesc does not work on primaries.
2013-12-12 19:21:36 +01:00
Stefan Dösinger
5a656dead6
ddraw/tests: Test user memory and getdc interaction.
...
Some Windows Media Player 9 visualization plugins used ddraw in this way
to get a dc for their custom memory allocations.
2013-12-11 18:17:00 +01:00
Francois Gouget
94eb50eda0
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2013-12-05 12:40:57 +01:00
Henri Verbeet
ce09d3633a
ddraw: Properly flip through the swap chain in ddraw_surface7_Flip().
2013-12-05 12:40:56 +01:00
Henri Verbeet
f637c229f9
ddraw/tests: Add a test for primary surface capabilities.
2013-12-05 12:40:56 +01:00
Henri Verbeet
00eaf27dc7
ddraw: Validate that surfaces are on the same swap chain in ddraw_surface7_Flip().
2013-12-04 11:07:51 +01:00
Henri Verbeet
74e3f516bc
ddraw: Attach the first surface in the swap chain to the last one.
2013-12-04 11:07:46 +01:00
Henri Verbeet
ab8d59c29d
ddraw: Reject flips of surfaces with themselves.
2013-12-04 11:07:41 +01:00
Frédéric Delanoy
5ba7f79bad
Assorted spelling fixes.
2013-12-03 19:41:53 +01:00
Stefan Dösinger
42470bae67
ddraw/tests: Test SetSurfaceDesc and Lock interaction.
2013-12-03 19:36:13 +01:00
Stefan Dösinger
5e43ee256c
ddraw: Check for lpSurface=NULL in SetSurfaceDesc.
2013-12-03 19:36:11 +01:00
Stefan Dösinger
c15d89c803
ddraw: SetSurfaceDesc accepts DDSD_CAPS with dwCaps=0.
2013-12-03 19:36:09 +01:00
Stefan Dösinger
1f36605886
ddraw: SetSurfaceDesc is not allowed on managed textures.
2013-12-03 19:36:07 +01:00
Stefan Dösinger
eb361e9eec
ddraw/tests: Port test_set_surface_desc to other versions.
2013-12-03 19:36:04 +01:00
Henri Verbeet
e780ee581d
ddraw: Return the correct error in ddraw_surface7_Flip() when the surface is not flippable.
2013-12-03 12:35:19 +01:00
Henri Verbeet
66c71baefe
ddraw: Only set DDSCAPS_FRONTBUFFER on flippable surfaces.
2013-12-03 12:35:14 +01:00
Henri Verbeet
76420a2441
ddraw: Only set DDSCAPS_VISIBLE on the root surface.
2013-12-03 12:35:11 +01:00
Henri Verbeet
ebd5c2076c
ddraw/tests: Add a surface flipping test.
2013-12-03 12:35:03 +01:00
Henri Verbeet
019143a6a9
ddraw/tests: Unify the skip messages a bit.
2013-12-02 12:12:54 +01:00
Henri Verbeet
a86aba4bc0
ddraw/tests: Add some missing DestroyWindow() calls.
2013-12-02 12:12:51 +01:00
Henri Verbeet
026dc11677
ddraw/tests: Use explicit A calls.
2013-10-31 09:58:44 +01:00
Stefan Dösinger
7899850d60
ddraw/tests: r200 accepts 3DDEVICE | ZBUFFER render targets in ddraw4.
...
It doesn't in ddraw2 and 7.
2013-10-29 20:05:25 +01:00
Stefan Dösinger
4b39c46fa2
ddraw/tests: Make caps checking in test_rt_caps() less strict.
...
R200 creates P8 3DDEVICE surfaces in video memory, and consequently
returns a different error message when trying to create a device.
2013-10-29 20:02:40 +01:00
Stefan Dösinger
3fafd37905
ddraw/tests: Allow some flags to fail surface creation in test_rt_caps.
2013-10-29 20:01:04 +01:00
Stefan Dösinger
81ed93d4f7
ddraw/tests: Accept nvidia return values in test_rt_caps.
2013-10-29 19:59:27 +01:00
Francois Gouget
4dc152bd70
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2013-10-28 10:42:00 +01:00
Stefan Dösinger
e47edf47fe
ddraw/tests: Test DDLOCK_DISCARDCONTENTS.
2013-10-24 19:01:56 +02:00
Stefan Dösinger
a562af5ace
ddraw/tests: Test DDSCAPS2_D3DTEXTUREMANAGE.
2013-10-23 17:02:57 +02:00
Stefan Dösinger
9c456ef88c
ddraw/tests: Add surface lockability tests.
2013-10-23 17:02:57 +02:00
Frédéric Delanoy
3d30fb881a
ddraw/tests: Use BOOL type where appropriate.
2013-10-10 10:44:40 +02:00
Michael Stefaniuc
0e681027a2
tests: Compile the tests by default with -D__WINESRC__.
2013-10-02 11:04:02 +02:00
Francois Gouget
0cc1c22d16
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2013-10-01 10:56:28 +02:00
Henri Verbeet
e02de5ff16
ddraw: Avoid VOID.
2013-09-23 20:38:18 +02:00
Henri Verbeet
31de4f1670
ddraw/tests: Add a test for render target surface capabilities.
2013-09-20 11:27:37 +02:00
Francois Gouget
15b6ff2023
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2013-09-13 00:17:58 +02:00
Henri Verbeet
87ef65ab7b
ddraw: Avoid LPVOID.
2013-09-11 09:59:04 +02:00
Stefan Dösinger
20ce6bd102
ddraw/tests: Don't test transformed vertices with normals.
...
They crash the GPU driver of my r200 WinXP laptop, causing anything from
a BSOD to a frozen or black screen and sometimes incorrectly set
resolutions.
2013-09-09 22:10:01 +02:00
Stefan Dösinger
b92928333b
ddraw/tests: Test unsupported texture formats.
2013-09-06 17:25:08 +02:00
Stefan Dösinger
f69ba15a92
ddraw/tests: Test blocked texture creation restrictions.
2013-09-06 17:25:08 +02:00
Stefan Dösinger
8da09ba196
ddraw/tests: Test DDCAPS2_TEXTUREMANAGE compatibility, with other flags.
2013-09-05 17:56:06 +02:00
Stefan Dösinger
91fa7c07c9
ddraw/tests: Test WM_ACTIVATEAPP messages generated by SetCooperativeLevel.
2013-09-02 18:07:17 +02:00
Alexandre Julliard
cf8d7fbb6b
ddraw/tests: Remove a todo from a test that succeeds.
2013-07-29 15:52:17 +02:00
Francois Gouget
67307a9cf1
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2013-06-29 12:45:26 +02:00
Stefan Dösinger
cf1e6a487a
ddraw/tests: Get rid of D3DRENDERSTATE_LIGHTING hacks in ddraw4.c.
2013-06-20 22:14:36 +02:00
Stefan Dösinger
4b93cf707d
ddraw/tests: Test lighting control in different interface versions.
2013-06-20 22:14:36 +02:00
Stefan Dösinger
c1663c5583
ddraw: Device2 and Device3 do not have a lighting render state.
2013-06-20 22:14:36 +02:00
Stefan Dösinger
21491c8748
ddraw/tests: Add a test for fog_start == fog_end.
2013-06-19 20:09:53 +02:00
Stefan Dösinger
831424ef83
ddraw/tests: Fix a typo.
2013-06-06 10:45:46 +02:00
Stefan Dösinger
89dd55c4a6
ddraw/tests: Add EXCLUSIVE->NORMAL coop level switching tests.
2013-06-06 10:45:42 +02:00
Sam Edwards
d1b67698b9
ddraw/tests: Verify window style after exiting fullscreen mode.
2013-04-03 11:34:05 +02:00
Stefan Dösinger
3eb6045325
ddraw/tests: Use hardware VP only if available in the visual tests.
2013-03-12 18:55:01 +01:00
Stefan Dösinger
f39443787a
ddraw/tests: Use a software VP device in test_surface_interface_mismatch.
2013-03-12 18:54:56 +01:00
Stefan Dösinger
a990dbfa22
ddraw/tests: Use a TnLHal device only if supported in ddraw7 tests.
...
Intel GPUs don't support d3d7 hardware vertexprocessing on Windows. In
d3d8 and d3d9 it is available starting with i965 chips, but for some
reason the driver does not expose this for d3d7.
2013-03-12 18:54:45 +01:00
Francois Gouget
3e6d0a373d
ddraw/tests: Fix the refresh rate test when running with the Windows 'Standard VGA' driver.
2013-02-20 10:34:41 +01:00
Michael Stefaniuc
54a1504c57
ddraw/tests: Simplify some equality comparisons between bools.
2013-02-20 10:34:29 +01:00
Michael Stefaniuc
7d0ab835ae
ddraw/tests: Use assignment instead of memcpy to copy structs.
2013-02-05 20:15:36 +01:00
Stefan Dösinger
ab8276fe91
ddraw/tests: Add viewport handling tests.
2013-01-29 11:48:19 +01:00
Stefan Dösinger
aaa11492db
wined3d: Ignore clears if count = 0 and rects != NULL.
2013-01-23 19:16:32 +01:00
Stefan Dösinger
a8469a458f
ddraw/tests: Add basic tests for DrawIndexedPrimitiveStrided.
2013-01-16 20:27:19 +01:00
Henri Verbeet
292522c4ad
ddraw: Only modify the ddraw destination window at the end of ddraw7_SetCooperativeLevel().
...
We want this to happen after ddraw_destroy_swapchain() in particular, because
dest_window being different from d3d_window will cause it to destroy
d3d_window, but this seems like a good idea in general.
2013-01-15 12:13:04 +01:00
Henri Verbeet
ae725df54a
ddraw: Add a small tests for SetCooperativeLevel() calls with different windows.
...
In particular, test that the windows aren't destroyed by accident.
2013-01-15 12:12:56 +01:00
Stefan Dösinger
d3520ef465
ddraw: Don't discard buffers that haven't been used in draws.
2013-01-10 16:05:34 +01:00
Henri Verbeet
99dcfdf0ce
ddraw: Avoid LPD3DDEVICEDESC7.
2012-12-12 11:58:55 +01:00
Henri Verbeet
b1186d71c2
ddraw: Avoid LPDDSURFACEDESC.
2012-12-07 10:35:29 +01:00
Henri Verbeet
0fa127b1fa
ddraw: Avoid LPDIRECT3D7.
2012-11-16 11:39:42 +01:00
Henri Verbeet
a24d59a1dd
ddraw: Avoid LPDIRECT3DDEVICE7.
2012-11-14 11:27:30 +01:00
Henri Verbeet
ea50cde939
ddraw: Avoid LPDIRECT3DVIEWPORT2.
2012-11-13 16:54:53 +01:00
Henri Verbeet
98dc4cd43c
ddraw: Avoid LPDIRECT3DVERTEXBUFFER7.
2012-11-08 15:37:46 +01:00
Henri Verbeet
99daff8f03
ddraw: Avoid LPDIRECTDRAW.
2012-11-08 15:37:46 +01:00
Henri Verbeet
8fd29034d0
ddraw/tests: Avoid LPDIRECTDRAW7.
2012-11-07 11:57:13 +01:00
Henri Verbeet
2889ec6bb0
ddraw: Avoid LPDIRECTDRAWSURFACE.
2012-11-06 16:02:33 +01:00
Henri Verbeet
b146861c36
ddraw: Avoid LPDIRECTDRAWSURFACE2.
2012-11-06 16:02:32 +01:00
Henri Verbeet
5190792b33
ddraw: Avoid LPDIRECTDRAWSURFACE4.
2012-11-05 11:30:31 +01:00
Henri Verbeet
1216eb577b
ddraw: Avoid LPDIRECTDRAWSURFACE7.
2012-11-05 11:30:31 +01:00
Henri Verbeet
f9105db050
ddraw/tests: Add some display mode set / restore tests with multiple ddraw objects.
2012-10-17 11:54:57 +02:00
Alexandre Julliard
8ab2ed64fd
ddraw/tests: Fix clip region tests for older ddraw too.
2012-09-17 12:10:55 +02:00
Alexandre Julliard
83cfd54f85
ddraw/tests: Allow the clip region to contain multiple rectangles.
2012-09-13 23:35:49 +02:00
Henri Verbeet
c722f2d31e
ddraw: Merge ddraw_surface_destroy() into ddraw_surface_cleanup().
2012-06-13 21:35:38 +02:00
Henri Verbeet
34c9586b60
ddraw/tests: Split up test_coop_level_surf_create().
2012-06-01 17:46:43 +02:00
Henri Verbeet
d61d842630
ddraw/tests: Split up test_initialize().
2012-06-01 17:46:43 +02:00
Henri Verbeet
4f85b3772d
ddraw/tests: Add test_coop_level_mode_set() for older ddraw versions.
2012-06-01 17:46:42 +02:00
Henri Verbeet
5227dfa8ef
ddraw/tests: Move test_coop_level_mode_set() to ddraw7.c.
2012-05-31 18:05:15 +02:00
Henri Verbeet
643a68f692
ddraw/tests: Add test_redundant_mode_set() for older ddraw versions.
2012-05-30 17:17:59 +02:00
Henri Verbeet
5582e1c9fe
ddraw/tests: Move test_redundant_mode_set() to ddraw7.c.
2012-05-30 17:17:59 +02:00
Henri Verbeet
7a52db09e3
ddraw/tests: Add test_window_style() for older ddraw versions.
2012-05-29 10:45:02 +02:00
Henri Verbeet
ec8a9df007
ddraw/tests: Move test_window_style() to ddraw7.c.
2012-05-29 10:44:56 +02:00
Henri Verbeet
4bf45eca23
ddraw/tests: Add test_wndproc() for the other ddraw versions as well.
2012-05-24 20:08:49 +02:00
Henri Verbeet
ef03ac0005
ddraw/tests: Move test_wndproc() to ddraw7.c.
2012-05-24 20:08:48 +02:00
Henri Verbeet
4905773baf
ddraw: Only initially enable color keying for version 1 devices.
2012-05-24 20:08:48 +02:00
Henri Verbeet
baa5ceecb0
ddraw/tests: Add a test for the initial color keying state.
2012-05-23 18:24:51 +02:00
Henri Verbeet
fa90a256d7
ddraw/tests: Properly cleanup on failed device creation in a couple of places.
2012-05-23 18:24:50 +02:00
Henri Verbeet
89d561e6f8
ddraw/tests: Add a helper function to setup execute buffers.
2012-05-23 18:24:47 +02:00
Michael Stefaniuc
7fcbf0736e
ddraw/tests: Remove some stray ok() calls.
2012-05-21 11:34:38 +02:00
Michael Stefaniuc
3525e1dc46
ddraw/tests: Actually run a test.
2012-05-17 10:18:24 +02:00
Francois Gouget
fac36c55e9
Assorted typo, spelling, wording and case fixes.
2012-05-15 16:26:43 +02:00
Henri Verbeet
e744bf78c8
ddraw/tests: Add a helper function to set the viewport background material.
2012-04-20 11:58:00 +02:00
Henri Verbeet
3f0af44ffb
ddraw/tests: Add a helper function to create a material.
2012-04-16 12:05:21 +02:00
Henri Verbeet
9804ebcd9e
ddraw/tests: Add some QueryInterface() tests for devices.
2012-04-06 20:11:23 +02:00
Henri Verbeet
cf30899f1a
ddraw: Version 1 devices are aggregated by the surface that created them.
2012-04-06 20:11:17 +02:00
Henri Verbeet
cdd2d7f258
ddraw/tests: Add some QueryInterface() tests for surfaces.
2012-04-03 12:00:41 +02:00
Henri Verbeet
02b6e04a76
ddraw/tests: Add a helper function to create a viewport.
2012-03-27 11:38:41 +02:00
Henri Verbeet
9e44c4bc58
ddraw/tests: Fix a couple of return value checks.
2012-03-13 10:26:49 +01:00
Henri Verbeet
3c5a2549c5
ddraw/tests: Add tests for color keyed texturing with an alpha channel.
2012-02-29 10:31:20 +01:00
Stefan Dösinger
f8d6d0300b
ddraw/tests: LONG/ULONG and error checking fixes.
2012-02-27 14:15:31 +01:00
Francois Gouget
cdac8cb176
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2012-02-27 12:54:14 +01:00
Henri Verbeet
19199bc524
ddraw/tests: Add tests for z-clipping with D3DRENDERSTATE_ZENABLE disabled.
2012-02-24 09:55:56 +01:00
Francois Gouget
527e1ae1ac
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2012-02-06 10:19:53 -06:00
Henri Verbeet
7fda67d74a
ddraw/tests: Move some helper functions up with the rest of the helper functions.
2012-02-05 09:36:11 -06:00
Henri Verbeet
98bd3ef803
ddraw/tests: Use correct COM macros in a couple of places.
2012-02-05 09:34:05 -06:00
Stefan Dösinger
acf82ff1f5
ddraw/tests: Add some IDirect3DViewport interface tests.
2012-02-02 12:59:36 +01:00
Stefan Dösinger
4775c76208
ddraw/tests: Add an IDirect3DDevice7::Load color key test.
2012-01-31 17:49:27 +01:00
Stefan Dösinger
cfc9e120ae
ddraw/tests: Add an IDirect3DTexture2::Load color key test.
2012-01-31 17:49:23 +01:00
Stefan Dösinger
2bd56ac553
ddraw/tests: Add an IDirect3DTexture::Load color key test.
2012-01-31 17:49:19 +01:00
Henri Verbeet
0d8e6719d5
ddraw: AddAttachedSurface() just references whatever we pass it.
2012-01-31 13:46:30 +01:00
Stefan Dösinger
60ef7e0bd4
ddraw/tests: Port the depth blit test to ddraw2.
2012-01-30 20:44:47 +01:00
Stefan Dösinger
b16248898b
ddraw/tests: Port the depth blit test to ddraw4.
2012-01-30 20:44:47 +01:00
Stefan Dösinger
8a82f0083a
ddraw/tests: Port the depth blit test to ddraw7.
2012-01-30 20:44:46 +01:00
Henri Verbeet
ed6461f9da
ddraw/tests: Add a test for SetCooperativeLevel() on a window that belongs to another thread.
2012-01-27 14:57:55 +01:00
Matteo Bruni
e51d3f6de6
ddraw: Accept pointers to wrong IDirectDrawSurface versions.
2012-01-24 11:56:06 +01:00
Francois Gouget
21036e13df
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2012-01-23 16:06:54 +01:00
Henri Verbeet
992dbc1078
ddraw: Maintain D3D state across cooperative level changes.
2012-01-18 12:37:38 +01:00
Henri Verbeet
dfa7e9b563
ddraw/tests: Add some tests to show that we should maintain D3D state across cooperative level chnages.
2012-01-18 12:37:38 +01:00
Henri Verbeet
1acd8278c8
ddraw/tests: Add a border around the blitted source data in test_clipper_blt().
...
Some drivers use the neighbouring pixels in the interpolation. You can
probably argue about whether that's right or wrong, but it's really not what
we're trying to test in either case.
2012-01-18 12:37:38 +01:00
Henri Verbeet
afb64506ba
ddraw: Implement width and height changes in ddraw_surface7_SetSurfaceDesc().
2012-01-13 17:34:30 +01:00
Henri Verbeet
d6dfb7914a
ddraw/tests: Fix some surface locking calls.
...
In ddraw7 DDLOCK_WAIT is the default behaviour, in earlier versions it's
DDLOCK_DONOTWAIT.
2012-01-12 12:37:09 +01:00
Henri Verbeet
1ef86ad596
ddraw: Properly clear the clip list if ddraw_clipper_SetClipList() is called with NULL region data.
2012-01-10 10:47:13 +01:00
Henri Verbeet
e2765579bc
ddraw/tests: Add tests for clippers with a destroyed window.
2012-01-10 10:47:04 +01:00
Francois Gouget
adcd8637ac
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2012-01-09 12:52:10 +01:00
Henri Verbeet
31f3120815
ddraw: Convert to integer before adjusting the clipped source rect.
...
This makes a difference for the bottom and right edges, and we could end up
with an empty source rectangle otherwise.
2012-01-06 19:24:20 +01:00
Henri Verbeet
f17e714857
ddraw: Implement IDirectDrawClipper::SetClipList().
2012-01-06 19:24:20 +01:00
Henri Verbeet
223b0736c0
ddraw: Disallow clipped blits in ddraw_surface7_BltFast().
2012-01-05 20:54:21 +01:00
Henri Verbeet
99e5e3ac0d
ddraw: Refuse to set a clip list if a clipper is already tracking a window.
2012-01-05 20:54:19 +01:00
Henri Verbeet
3997457574
ddraw/tests: Add some clipper tests.
2012-01-05 20:54:17 +01:00
Henri Verbeet
387a5f632c
ddraw: Fix the title and class name for the auto ddraw device window.
2011-12-23 13:44:26 +01:00
Henri Verbeet
3e6313050b
ddraw: Handle the special DDSCL_SETFOCUSWINDOW | DDSCL_CREATEDEVICEWINDOW combination.
2011-12-23 13:44:19 +01:00
Henri Verbeet
d8153e5364
ddraw: Properly handle DDSCL_CREATEDEVICEWINDOW.
2011-12-23 13:44:12 +01:00
Henri Verbeet
2ec0c7bfdc
ddraw: DDSCL_CREATEDEVICEWINDOW requires DDSCL_EXCLUSIVE.
2011-12-23 13:44:00 +01:00
Henri Verbeet
654d53fa5f
ddraw/tests: Add some tests for DDSCL_CREATEDEVICEWINDOW.
2011-12-22 10:08:45 +01:00
Henri Verbeet
fe4e2bf60e
ddraw/tests: Fix a couple of test messages.
2011-12-22 10:08:07 +01:00
Henri Verbeet
4a30db74b1
ddraw: Handle the Direct3D clipspace transformation.
...
Direct3D3 and earlier have an extra transformation to scale clipspace. It's
controlled by the extra viewport parameters in those versions.
2011-12-22 10:07:59 +01:00
Henri Verbeet
5c3ba123de
ddraw/tests: Move the Direct3D7 ProcessVertices() test to ddraw7.c.
2011-12-20 10:11:36 +01:00
Henri Verbeet
7cdfa40156
ddraw/tests: Add a ProcessVertices() test for Direct3D3.
2011-12-20 10:11:24 +01:00
Henri Verbeet
cb8f26be02
ddraw/tests: Remove some error checking from ProcessVerticesTest().
2011-12-20 10:10:39 +01:00
Henri Verbeet
fb28e7f596
ddraw/tests: Introduce proper vector types.
2011-12-19 20:15:48 +01:00