Commit Graph

158 Commits

Author SHA1 Message Date
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
Henri Verbeet 9ad6f2e1f4 d3d9/tests: Add some tests for resetting the device window. 2012-02-29 20:47:30 +01:00
Eric Pouech 1d3952ed9f d3d: Fixed a couple of warnings for 64bit targets. 2011-12-12 10:53:49 +01:00
Stefan Dösinger f8dbf97e8d d3d9/tests: Clarify a comment. 2011-12-06 17:07:23 +01:00
Henri Verbeet 1ac6f487d5 d3d9/tests: Test the window and backbuffer dimensions after display mode changes. 2011-11-28 16:40:47 +01:00
Henri Verbeet 002447357c d3d9/tests: Add a small test for IDirect3DDevice9::SetCursorPosition(). 2011-10-21 12:09:40 +02:00
Henri Verbeet 1226ffe062 d3d9/tests: Add a test for IDirect3DDevice9::GetRenderTarget(). 2011-10-10 13:39:42 +02:00
André Hentschel 3c9aa22289 d3d9/tests: Don't test function directly when reporting GetLastError(). 2011-09-26 18:15:12 +02:00
Stefan Dösinger e1d92059ea d3d9: Implement FPUSETUP for msvc. 2011-09-26 17:59:41 +02:00
Stefan Dösinger 7759729fc7 d3d9/Tests: State getters don't work with PUREDEVICEs. 2011-09-16 17:23:10 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
Andrew Nguyen 94785ab4d5 d3d9: Increment the reference count of the IDirect3D9 parent when creating a device. 2011-06-06 21:49:19 +02:00
Stefan Dösinger 387d5d74ce d3d9: Use a DWORD to read render states. 2011-05-19 10:08:55 +02:00
Francois Gouget bfbc015854 d3d9/tests: Add a '\n' to a skip() call. 2011-05-09 12:09:15 +02:00
Henri Verbeet 4a7ff5fc35 d3d9/tests: Add a volume texture test to test_reset(). 2011-05-05 11:45:13 +02:00