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
Henri Verbeet
bd09f63bff
ddraw/tests: Remove a redundant IDirect3DDevice7_SetViewport() call.
2011-12-19 20:15:48 +01:00
Henri Verbeet
2db8688185
ddraw/tests: Introduce some functions for comparing floating-point vectors.
2011-12-19 20:15:48 +01:00
Stefan Dösinger
9cf25006ad
ddraw/tests: Extend the CreateSurface(NULL test), use own function.
2011-12-08 18:04:29 +01:00
Stefan Dösinger
481e2f3366
ddraw: SetSurfaceDesc can set width, height and pitch under certain conditions.
2011-12-08 18:04:18 +01:00
Stefan Dösinger
b2ca7e37f4
ddraw/tests: Make the SetSurfaceDesc test ok messages consistent.
2011-12-08 18:00:32 +01:00
Stefan Dösinger
7ae81ba378
ddraw/tests: Add a IDirect3DDevice2 GetCaps test.
2011-12-06 17:07:15 +01:00
Stefan Dösinger
ea151da3cd
ddraw/tests: Update a copyright line.
2011-12-05 17:40:21 +01:00
Stefan Dösinger
d4f504c698
ddraw/tests: Add a IDirect3DDevice7 GetCaps test.
2011-12-05 17:40:11 +01:00
Stefan Dösinger
cc06d182fb
ddraw: Size handling fixes for IDirect3DDevice::GetCaps.
2011-12-05 17:40:04 +01:00
Henri Verbeet
82dd612d50
ddraw: Resize the swapchain window on mode changes in exclusive mode.
2011-11-30 11:50:42 +01:00
Henri Verbeet
0f10ac9358
ddraw: Create the wined3d swapchain when setting the cooperative level.
2011-11-29 13:22:54 +01:00
Henri Verbeet
f41ea4fefe
ddraw/tests: Add tests for primary dimensions to test_coop_level_mode_set().
2011-11-28 16:40:47 +01:00
Henri Verbeet
bca0ec8182
ddraw: Fail surface creation if the cooperative level isn't set yet.
2011-11-24 17:09:57 +01:00
Francois Gouget
3315918eac
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2011-11-21 11:01:10 +01:00
Stefan Dösinger
9e0baa55ce
ddraw: Set correct HEL and HAL color models.
2011-11-15 19:37:28 +01:00
Stefan Dösinger
c3d6061593
ddraw: Add more tests and fixes for SetSurfaceDesc.
2011-11-15 19:37:28 +01:00
Stefan Dösinger
460e35aace
ddraw/tests: Mark a VMware failure broken.
2011-11-15 19:37:28 +01:00
Stefan Dösinger
edfeec60b1
ddraw/tests: Add a YV12 blit test.
2011-11-14 15:25:24 +01:00
Stefan Dösinger
a9c72d8772
ddraw/tests: Add a test for YV12 partial block locks and lock offsets.
2011-11-14 15:25:24 +01:00
Francois Gouget
82c3b84e40
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2011-11-14 15:25:20 +01:00
Stefan Dösinger
6a7c82186a
ddraw/tests: Add a partial block lock test.
2011-11-08 18:19:16 +01:00
Octavian Voicu
0134df1973
ddraw/tests: Fix a couple of copy-paste typos in test messages.
2011-11-08 14:22:04 +01:00
Francois Gouget
9b7178e633
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2011-11-07 11:32:57 +01:00
Octavian Voicu
6e75f68153
ddraw/tests: Add more attachment/detachment test cases.
2011-11-03 13:52:15 +01:00
Octavian Voicu
9776a3bae2
ddraw/tests: Use more common pixel formats and caps for attachment tests.
2011-11-03 13:52:15 +01:00
Octavian Voicu
6e7bb64950
ddraw/tests: Move surface attachment tests from refcount.c to dsurface.c.
2011-11-03 13:52:15 +01:00
Octavian Voicu
b44eef7085
ddraw: Keep track of interface attached by AddAttachedSurface and detach correct interface when parent is released.
2011-10-12 20:52:46 +02:00
Octavian Voicu
9cff895a69
ddraw/tests: Test detachment of attached surfaces on Release.
2011-10-11 20:12:06 +02:00
Ričardas Barkauskas
f0354fde02
ddraw/tests: IDirect3DViewport3, IDirect3DViewport2 and IDirect3DViewport use same implementation.
2011-10-04 15:24:53 -05:00
Francois Gouget
3de330db54
tests: Remove unneeded assert.h includes.
2011-09-27 10:59:56 +02:00
Stefan Dösinger
35f2e91fcd
ddraw/tests: Use the variable instead of the type in sizeof().
2011-09-26 17:59:37 +02:00
Stefan Dösinger
6e0d056e9a
ddraw/tests: Use sizeof instead of a magic number.
2011-09-26 17:59:34 +02:00
Stefan Dösinger
f41513205c
ddraw/tests: Accept another error when setting an overlay with a NULL rect.
2011-09-19 18:32:51 +02:00
Stefan Dösinger
95b7cda6be
ddraw/tests: Mark a strange radeon X1600 Windows behavior broken.
2011-09-19 18:32:51 +02:00
Stefan Dösinger
81a9f19bac
ddraw/tests: Remove the partial cube map load tests.
...
They BSOD my Radeon X1600 Windows machine.
2011-09-19 18:32:51 +02:00
Henri Verbeet
18840ff9d9
ddraw/tests: Add some tests for Initialize().
2011-09-19 17:56:05 +02:00
Stefan Dösinger
eac78fd488
ddraw/tests: Add some slop to the fog tests.
2011-09-16 17:23:10 +02:00
Stefan Dösinger
e28041c9a6
ddraw/tests: Not all GPUs support dwZBufferBitDepth=24 on Windows.
2011-09-15 15:41:40 +02:00
Dan Kegel
c5d45e8b88
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2011-09-13 11:27:00 +02:00
Stefan Dösinger
081f39044f
ddraw: Use a Z format suported by the driver in the visual test.
2011-09-12 10:10:20 +02:00
Stefan Dösinger
0cea17037c
ddraw: Correct D3DFMT_R5G6B5 in a test.
2011-09-12 10:10:06 +02:00
Stefan Dösinger
73f9dd1c30
ddraw: Add tests for dwZBufferBitDepth and dwMipMapCount values.
2011-09-07 11:15:43 +02:00
Stefan Dösinger
4466d6223b
ddraw: Add tests for DDSD_PIXELFORMAT and DDSD_ZBUFFERBITDEPTH in Lock.
2011-09-07 11:15:37 +02:00
Stefan Dösinger
d6f17d686d
ddraw: Check the alignment, not the size.
2011-09-07 11:15:20 +02:00
Stefan Dösinger
8e79a7e664
ddraw: Add some NULL pointer tests.
2011-09-07 11:15:09 +02:00
Stefan Dösinger
252bead280
ddraw: Remove crashing tests.
2011-09-07 11:15:05 +02:00
Francois Gouget
94532dbd08
ddraw/tests: Fix compilation on systems that don't support nameless unions.
2011-09-05 10:54:00 +02:00
Ričardas Barkauskas
d9ada7929a
ddraw: Don't allow SetPalette on mipmap sublevels instead of root surfaces.
2011-09-02 18:28:25 +02:00
Stefan Dösinger
4107963967
ddraw: Fix a test message.
2011-09-02 14:42:53 +02:00
Stefan Dösinger
6057041deb
ddraw: Make the overlay tests pass on Windows 7.
2011-09-02 14:42:48 +02:00
Stefan Dösinger
e0db367aef
ddraw: Set the viewport after changing the render target.
2011-09-02 14:42:43 +02:00
Stefan Dösinger
5ce2e1f39e
ddraw: Mark DepthFill blit failures between beginScene and EndScene broken.
2011-09-02 14:42:34 +02:00
Francois Gouget
3a9343e520
ddraw/tests: Make enum_z_fmt_cb() static.
2011-09-02 14:42:10 +02:00
Stefan Dösinger
05b3222b39
ddraw: Add a test for DDSD_ZBUFFERBITDEPTH and DDSD_PIXELFORMAT.
2011-08-31 19:43:09 +02:00
Stefan Dösinger
6176eb87de
ddraw: Set dwZBufferBitDepth in old z buffers.
2011-08-31 19:43:09 +02:00
Stefan Dösinger
42b7ad4fd4
ddraw: Convert dwZBufferBitDepth into a DDPIXELFORMAT.
2011-08-31 19:43:09 +02:00
Stefan Dösinger
167b65ca5e
ddraw: Show that ddraw reads ddsCaps without DDSD_CAPS set.
2011-08-31 19:43:09 +02:00
Stefan Dösinger
899b278558
ddraw: Emulate a 24 bit depth format without stencil or padding.
2011-08-29 13:56:33 +02:00
Ričardas Barkauskas
bf7df85169
ddraw: Do not create implicit depth buffer.
2011-08-25 11:31:38 +02:00
Ričardas Barkauskas
abf8728e1f
ddraw: Don't allow setting palette on non root surfaces.
2011-08-22 17:15:48 +02:00
Ričardas Barkauskas
1a609ecab8
ddraw/tests: Properly release no longer used interfaces.
2011-08-22 17:15:41 +02:00
Frédéric Delanoy
760faf01a9
tests: Assorted spelling fixes.
2011-08-04 18:27:37 +02:00
Matteo Bruni
0c34811612
ddraw/tests: Add a couple of fog tests.
2011-07-28 11:29:02 +02:00
Matteo Bruni
b6af8a7ef9
ddraw/tests: Fix some messages.
2011-07-27 11:53:02 +02:00
Matteo Bruni
2308f4cfda
ddraw/tests: Rename a variable.
2011-07-27 11:52:54 +02:00
Henri Verbeet
e55121773a
ddraw/tests: Add tests to show that resizing the window on mode changes is a property of DDSCL_EXCLUSIVE.
2011-07-22 12:57:19 +02:00
Henri Verbeet
84413298de
ddraw: Resize the window after setting the new display mode.
2011-07-22 12:57:18 +02:00
Henri Verbeet
04d541c26d
ddraw: Just use SetWindowPos() in ddraw_set_display_mode().
...
Instead of going through wined3d_device_restore_fullscreen_window() /
wined3d_device_setup_fullscreen_window(). The main point of those functions is
changing the window styles, but we don't actually need that here. More
importantly, we filter the messages generated by those functions in wined3d,
while tests show that messages generated by SetDisplayMode() /
RestoreDisplayMode() are visible to the application. Applications depend on
WM_SIZE in particular.
2011-07-19 14:05:56 +02:00
Ričardas Barkauskas
e5d69ba923
ddraw: Separate IDirectDrawGammaControl reference count.
2011-06-28 11:57:51 -05:00
Ričardas Barkauskas
90112e97ea
ddraw: Move IDirect3DTexture and IDirect3DTexture2 to IDirectDrawSurface reference counts.
2011-06-28 11:57:50 -05:00
Ričardas Barkauskas
5f6d7021aa
ddraw: Separate IDirectDrawSurface and IDirectDrawSurface7 reference counts.
2011-06-28 11:57:50 -05:00
Ričardas Barkauskas
9190d349d2
ddraw: Separate IDirectDrawSurface4 reference count.
2011-06-28 11:57:50 -05:00
Ričardas Barkauskas
3b50ad82ad
ddraw: Fix SetRenderTarget behaviour on failure.
2011-06-28 11:57:50 -05:00
Ričardas Barkauskas
f0634f7a4b
ddraw: Separate IDirectDrawSurface3 reference count.
2011-06-21 17:11:53 +02:00
Ričardas Barkauskas
167ffc7b4b
ddraw: Separate IDirectDrawSurface2 reference count.
2011-06-21 17:10:55 +02:00
Ričardas Barkauskas
a9f72a3067
ddraw: Test ddraw surface reference counts a bit more.
2011-06-21 17:10:26 +02:00
Henri Verbeet
708d94212b
wined3d: Don't clamp vertex depth values.
...
Since we report D3DPMISCCAPS_CLIPTLVERTS.
2011-06-06 16:18:33 +02:00
Andrew Nguyen
a90b698e0c
ddraw: Handle a callback cancellation attempt in d3d7_EnumDevices.
2011-06-01 16:09:58 +02:00
Andrew Nguyen
f2f529ae38
ddraw: Extend the lifetime of the EnumDevices strings beyond function scope.
2011-06-01 16:09:53 +02:00
Andrew Nguyen
cf6d56a43a
ddraw: Add a NULL callback pointer check in the EnumDevices implementations.
2011-05-31 18:32:59 +02:00
Andrew Nguyen
7cd97b2ed4
ddraw/tests: Remove a superfluous skip check.
2011-05-31 18:32:59 +02:00