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
Martin Storsjo
8b2938a23e
d3d9/tests: Add tests for different YUV texture layouts.
2014-02-17 20:16:31 +01:00
Stefan Dösinger
442446cdc8
d3d9/tests: Add a test for sub resource private data.
2014-02-17 20:16:27 +01:00
Stefan Dösinger
6745982aaa
d3d9/tests: Skip YUV tests if the formats cannot be converted.
...
The Windows 8 testbot supports some YUV formats as plain surfaces, but cannot
convert them to RGB in StretchRect.
2014-02-17 20:16:26 +01:00
Stefan Dösinger
35223d80cb
d3d9/tests: Clean up yuv_color_test.
2014-02-17 20:16:25 +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
Henri Verbeet
86ffd6c4ea
d3d9/tests: Make sure create_device() returns NULL on failure.
2014-01-08 14:34:13 +01:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Stefan Dösinger
03fe6f3e07
d3d9/tests: Test user memory and getdc interaction.
2013-12-12 19:21:36 +01:00
Stefan Dösinger
58f16ddd4e
d3d9: shared_handle must be NULL in non-ex d3d9.
2013-12-10 17:32:22 +01:00
Stefan Dösinger
62df35c312
d3d9: Implement user memory for offscreen plain surfaces.
2013-12-10 17:32:15 +01:00
Stefan Dösinger
96c7a4d6ca
d3d9: Buffers do not support user memory.
2013-12-10 17:32:09 +01:00
Stefan Dösinger
d9bd9a9a87
d3d9: Volume and cube textures do not support user memory.
2013-12-10 17:32:03 +01:00
Stefan Dösinger
b7b0b7d2e1
d3d9/tests: Test user memory with D3DPOOL_SCRATCH.
2013-12-10 17:31:56 +01:00
Stefan Dösinger
799c2fb866
d3d9/tests: Extend the sysmem texture mipmap test.
2013-12-04 21:19:03 +01:00
Frédéric Delanoy
5ba7f79bad
Assorted spelling fixes.
2013-12-03 19:41:53 +01:00
Stefan Dösinger
c96092f831
d3d9/tests: Read the result before swapping in volume_v16u16_test.
2013-11-25 17:42:54 +01:00
Stefan Dösinger
cc138ba296
d3d9/tests: Add a test for AddDirtyRect.
2013-11-21 19:39:02 +01:00
Francois Gouget
b436087217
d3d9/tests: Fix a test failure on Windows XP with the default VGA driver.
2013-11-05 20:38:20 +01:00
Henri Verbeet
ceb4d2595b
d3d9/tests: Get rid of the "data2" vertex data array in pretransformed_varying_test().
2013-11-04 11:05:51 +01:00
Henri Verbeet
88971aa17d
d3d9/tests: Get rid of some unused test data in pretransformed_varying_test().
2013-11-01 10:53:14 +01:00
Henri Verbeet
532f17bce0
d3d9/tests: Fix the expected value for the "blendindices" test in pretransformed_varying_test().
...
0x00333333 makes much more sense than 0x00000000, and is what most of my
hardware returns. Apparently at least some GF7 cards (still) return
0x00000000, so also accept that as broken().
2013-11-01 10:53:09 +01:00
Henri Verbeet
90bd39c4e3
d3d9/tests: Use color_match() in more places.
2013-10-31 09:58:43 +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
Stefan Dösinger
60f62f4d48
d3d9/tests: Give stencil_cull_test its own device.
...
After drawing a quad with cullmode != none, the r500's Windows driver's
ability to clip clear rectangles to the viewport is permanently broken.
This shows up as a test failure in depth_buffer_test().
2013-10-29 20:07:07 +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
Michael Stefaniuc
0e681027a2
tests: Compile the tests by default with -D__WINESRC__.
2013-10-02 11:04:02 +02:00
Stefan Dösinger
fe20ee1bc4
d3d9/tests: Add a volume V16U16 test.
2013-09-23 20:32:34 +02:00
Sebastian Lackner
0fb3aaac10
d3d9/tests: Implemented tests for IDirect3DSwapChain9Ex_GetDisplayModeEx.
2013-09-20 17:03:44 +02:00
Michael Müller
cf01bb3d2a
d3d9/tests: Test if IDirect3DSwapChain9Ex is available with IDirect3D9(Ex).
2013-09-20 17:03:31 +02:00
Henri Verbeet
11ced88a37
d3d9: Avoid CONST.
2013-09-20 11:27:51 +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
Henri Verbeet
674b1e922d
d3d9: Avoid LPVOID.
2013-09-13 10:57:05 +02:00
Stefan Dösinger
53741d2bb9
d3d9/tests: D3DCMP_GREATER is broken on r500.
2013-09-12 17:48:51 +02:00
Stefan Dösinger
ed50457694
d3d9/tests: Clean up z_range_test a bit.
2013-09-12 17:48:28 +02:00
Stefan Dösinger
c0a14564d3
d3d9/tests: Actually accept r500 results.
2013-09-10 17:00:59 +02:00
Stefan Dösinger
ff14c24dd2
d3d9/tests: Use a plain depth stencil instead of a texture.
...
r500 does not support anything but AMD's extension depth texture formats
on Windows 7. Plain surfaces work OK with the builtin formats.
2013-09-10 17:00:55 +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
0cb72cdeb5
d3d9/tests: Add a DXT5 volume test.
2013-09-02 18:07:38 +02:00
Stefan Dösinger
c1c2f99939
d3d9/tests: Add a volume sRGB test.
2013-08-27 21:30:03 +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
Matteo Bruni
e2cf98eb76
wined3d: Implement special fog behavior for orthogonal projection matrices.
2013-07-24 11:09:31 -05:00
Henri Verbeet
c57913babb
d3d9/tests: Make shader bytecode static const.
2013-07-01 19:51:23 +02:00
Matteo Bruni
0141b20cee
d3d9/tests: Improve cnd instruction test.
2013-06-26 18:45:41 +02:00
Matteo Bruni
aeade16d62
d3d9/tests: Skip unbound_sampler_test if cube or volume textures aren't supported.
2013-06-20 22:14:36 +02:00
Matteo Bruni
5ffabcdfff
d3d9/tests: Reset texture 0 to NULL at the end of texop_test().
2013-06-20 22:14:35 +02:00
Stefan Dösinger
e030ed3c2f
d3d9/tests: Add a test for fog_start == fog_end.
2013-06-19 20:09:53 +02:00
Stefan Dösinger
30e9a37bbb
d3d9/tests: d3d9ex video memory accounting tests.
2013-05-21 19:41:39 +02:00
Stefan Dösinger
098105dca4
d3d9/tests: Don't test for equality in d3d9's depth_blit_test.
2013-04-24 18:26:48 +02:00
Stefan Dösinger
a4babd2ed3
d3d9/tests: Nvidia cannot handle 2x1 YUY2/UYVY surfaces.
2013-04-24 18:26:39 +02:00
Stefan Dösinger
6f8d25635d
d3d9/tests: Add r500 fp_special results.
2013-04-24 18:26:32 +02:00
Stefan Dösinger
67e57c84b9
d3d9/tests: Correct nv40 results.
2013-04-24 18:26:30 +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
Stefan Dösinger
6d06b7f5b8
d3d9/tests: Test special fp values in local constants.
...
The HLSL compiler refuses to use NaN and +/-Inf values in pre-SM4
shaders, claiming that those are unsupported in this shader model.
However, vsa.exe happilly generates them, the required strings in the
shader code are 1.#QNAN and 1.#INF. Native d3d9 happily loads such a
shader.
2013-04-09 16:33:50 +02:00
Sam Edwards
8157aa143b
d3d9/tests: Verify window style after exiting fullscreen mode.
2013-04-03 11:33:58 +02:00
Rico Schüller
08e20e9d69
d3d9/tests: Use lower base hexadecimal values.
2013-02-25 13:03:28 +01: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
Matteo Bruni
25d0d0876d
wined3d: Make (wined3d_)surface_depth_blt_fbo handle locations other than SFLAG_INTEXTURE.
2013-02-19 10:39:42 +01:00
Stefan Dösinger
ddc868c4a0
d3d9/tests: Add simple DrawRectPatch tests.
2013-01-25 11:31:15 +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
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
Stefan Dösinger
aeee527ebd
d3d9/tests: Move the clipplane + shader test inside the capability check.
2012-12-06 13:02:11 +01:00
Stefan Dösinger
b11e499c0b
d3d9/tests: Give the texture transform test a defined colorop.
2012-12-06 13:02:04 +01:00
Stefan Dösinger
320b33e57b
d3d9/tests: Skip some texture transform tests if shaders are unsupported.
2012-12-06 13:01:56 +01:00
Henri Verbeet
2f307a14f0
d3d9/tests: Add tests for device resets in d3d9ex.
2012-11-20 11:44:36 +01:00
Henri Verbeet
84da62d993
d3d9/tests: Create the d3d9ex object in create_device().
2012-11-20 11:44:31 +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
Henri Verbeet
32f8548d67
d3d9/tests: Avoid LPDIRECT3DSURFACE9.
2012-10-30 09:49:18 +01:00
Henri Verbeet
64ffe6476e
d3d9/tests: Avoid LPDIRECT3DVERTEXBUFFER9.
2012-10-30 09:49:15 +01:00
Henri Verbeet
369fb5185f
d3d9/tests: Avoid LPDIRECT3DTEXTURE9.
2012-10-30 09:49:13 +01:00
André Hentschel
31ca59f0b5
d3d9/tests: Fix copy-paste error (coverity).
2012-10-24 19:37:56 +02:00
Jacek Caban
9bb70e2739
d3d9/tests: Use proper helpers for iface calls.
2012-08-28 14:41:10 +02:00
Michael Stefaniuc
b410bc3a1a
d3d9/tests: Simplify some logic operations.
2012-08-17 16:25:58 +02:00
Henri Verbeet
09443f14e7
wined3d: Enable "AlwaysOffscreen" by default.
2012-07-19 15:43:59 +02:00
Henri Verbeet
2c8834dffd
d3d9: Implement d3d9_GetAdapterDisplayModeEx().
2012-06-28 01:39:27 +02:00
Henri Verbeet
d74a587b1b
d3d9/tests: Add a test for resource bindings after reset.
2012-06-18 17:48:26 +02:00
Józef Kucia
cafab89093
d3d9/tests: Add tests for IDirect3DCubeTexture9::GetLevelDesc and IDirect3DCubeTexture9::GetCubeMapSurface.
2012-05-22 17:43:59 +02:00
Michael Stefaniuc
3d9a4e8921
d3d9/tests: Remove stray ok() call.
2012-05-21 12:43:26 +02:00
Henri Verbeet
82b3dbdefb
d3d9/tests: Fix a couple of return value checks.
2012-03-13 10:26:40 +01:00
Matteo Bruni
94953f165a
d3d9/tests: Add shader model 2 fog tests.
2012-03-09 17:26:21 +01:00
Matteo Bruni
393b2f137c
d3d9/tests: Reenable a VS fog test.
2012-03-09 17:26:06 +01:00
Henri Verbeet
9ad6f2e1f4
d3d9/tests: Add some tests for resetting the device window.
2012-02-29 20:47:30 +01:00
Henri Verbeet
8f6ddf789e
d3d9/tests: Add tests for z-clipping with D3DRS_ZENABLE disabled.
2012-02-24 09:56:02 +01:00
Matteo Bruni
f69f2aa347
wined3d: SM1 texture projection always divides by w when there is a vertex shader set.
2012-01-24 11:55:47 +01:00
Matteo Bruni
ec0c7a1605
d3d9/tests: Add some RESZ tests.
2012-01-19 17:08:10 +01:00
Matteo Bruni
167b2869ff
d3d9/tests: Add a multisampled -> not multisampled depth buffer blit test.
2012-01-19 17:08:09 +01:00
Matteo Bruni
9fb3e0fb62
d3d9/tests: Multisampled depth buffer tests.
2012-01-10 10:48:43 +01:00
Matteo Bruni
175a6d8d59
d3d9/tests: Fix NP2 check.
2012-01-10 10:48:38 +01:00
Matteo Bruni
53849b7d5e
d3d9/tests: Add more INTZ tests.
2012-01-10 10:48:34 +01:00
Alexandre Julliard
7533f9bead
d3d9/tests: Convert a file to utf-8.
2012-01-03 12:37:20 +01:00
Matteo Bruni
8dee7989f2
d3d9/tests: More D3DTSS_TEXTURETRANSFORMFLAGS projection tests.
2011-12-28 18:55:25 +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
Stefan Dösinger
171c18a5bb
d3d9/tests: Test StrechRect between depth stencils with different sizes.
2011-12-06 17:07:20 +01:00
Henri Verbeet
a51b03f16e
d3d9/tests: Add a test for texture creation from system memory.
2011-12-02 11:51:19 +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
Marcus Meissner
d255efbde1
d3d9: Check that surface is allocated (Coverity).
2011-11-25 17:12:25 +01:00
Stefan Dösinger
7eefed1410
wined3d: YUY2 and UYVY are block based.
2011-11-07 14:32:16 +01:00
Stefan Dösinger
7fd752047d
d3d9/tests: Test partial block locks.
2011-11-07 14:27:24 +01:00
Stefan Dösinger
f1d98aed70
d3d9/tests: Move the double unlock test into a separate test, test other pools.
2011-11-03 13:52:15 +01:00
Matteo Bruni
095a9a6893
wined3d: Refuse to create a shader unsupported by the backend.
2011-10-26 12:41:35 +02:00
Henri Verbeet
6e8273177a
wined3d: Reject multisampled readbacks in wined3d_surface_get_render_target_data().
2011-10-24 11:16:33 +02:00
Henri Verbeet
002447357c
d3d9/tests: Add a small test for IDirect3DDevice9::SetCursorPosition().
2011-10-21 12:09:40 +02:00
Henri Verbeet
12a99309d9
d3d9/tests: Add a small test for multisampled GetRenderTargetData().
2011-10-20 11:03:15 +02:00
Austin English
c3f6f96df4
d3d9/tests: Only skip the visual tests if d3d cannot be initialized on Windows.
2011-10-18 16:24:45 +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
Matteo Bruni
f87483c307
d3d9/tests: Test creating shaders with wrong type or version.
2011-09-26 17:57:55 +02:00
Stefan Dösinger
7759729fc7
d3d9/Tests: State getters don't work with PUREDEVICEs.
2011-09-16 17:23:10 +02:00
Stefan Dösinger
6bf2eb76bb
d3d9/tests: Add a slop to the fog tests for X1600 GPUs.
2011-09-16 17:23:09 +02:00
Stefan Dösinger
f3644a513f
d3d9/tests: Fix the depth stencil size tests on AMD.
2011-09-16 17:23:09 +02:00
Stefan Dösinger
f708da1c1c
d3d9/tests: Range fog is not used with table fog.
2011-09-15 15:41:41 +02:00
Stefan Dösinger
c2cefe5584
d3d9: Add a LIT 0.0^0.0 test.
2011-09-12 10:09:40 +02:00
Matteo Bruni
e46378c764
d3d9/tests: Add unbound cube/volume texture tests.
2011-08-29 12:08:19 +02:00
Frédéric Delanoy
760faf01a9
tests: Assorted spelling fixes.
2011-08-04 18:27:37 +02:00
Henri Verbeet
7e3ecd683c
wined3d: Move rectangle validation from surface_cpu_blt() to wined3d_surface_blt().
...
This fixes some tests because these were getting skipped for the BltOverride() path.
2011-08-04 09:04:39 +02:00
Matteo Bruni
afd1fe4389
d3d9/tests: Add a couple of fog tests.
2011-07-28 11:29:05 +02:00
Matteo Bruni
9a790806bd
d3d9/tests: Fix some messages.
2011-07-27 11:53:14 +02:00
Matteo Bruni
85e729cf5d
d3d9/tests: Rename a variable.
2011-07-27 11:53:09 +02:00
Matteo Bruni
9d3cc8b012
wined3d: Make dummy textures black.
2011-07-06 19:38:46 +02:00
Matteo Bruni
8d39a85e18
d3d9/tests: Fix alpha component in the unbound sampler tests.
...
Spotted by Sean Sube.
2011-07-06 19:38:19 +02:00
Marcus Meissner
8e5c79e439
d3d9: Remove superflous NULL checks (Coverity).
2011-06-27 13:28:13 -05:00
Henri Verbeet
11bf170ce0
d3d9/tests: Add some tests for IDirect3DDevice9::UpdateSurface().
2011-06-16 11:16:22 +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
Henri Verbeet
708d94212b
wined3d: Don't clamp vertex depth values.
...
Since we report D3DPMISCCAPS_CLIPTLVERTS.
2011-06-06 16:18:33 +02:00
Sean Sube
301c6ef4e5
d3d9/tests: Added unbound sampler test for pixel shaders.
2011-06-03 13:41:48 +02:00