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
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
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
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
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
Rico Schüller
08e20e9d69
d3d9/tests: Use lower base hexadecimal values.
2013-02-25 13:03:28 +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
aaa11492db
wined3d: Ignore clears if count = 0 and rects != NULL.
2013-01-23 19:16:32 +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
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
Henri Verbeet
09443f14e7
wined3d: Enable "AlwaysOffscreen" by default.
2012-07-19 15: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
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
Matteo Bruni
8dee7989f2
d3d9/tests: More D3DTSS_TEXTURETRANSFORMFLAGS projection tests.
2011-12-28 18:55:25 +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
6e8273177a
wined3d: Reject multisampled readbacks in wined3d_surface_get_render_target_data().
2011-10-24 11:16:33 +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
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
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
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
Rico Schüller
480259ca2c
d3d9/tests: Fix some ok() messages in the visual tests.
2011-05-25 17:54:38 +02:00
Stefan Dösinger
cf757a6361
d3d9: Use a pixel shader for the vs 3.0 input test.
2011-05-25 12:23:32 +02:00
Stefan Dösinger
d8224118ab
d3d: Make the INTZ test more reliable.
2011-05-25 12:23:24 +02:00
Henri Verbeet
ea34d7aaba
d3d9/tests: Add a test for unwritten pixel shader outputs.
2011-05-25 11:49:27 +02:00
Henri Verbeet
6d31824a6e
d3d9/tests: Fix the depth clamping test.
2011-05-25 11:48:29 +02:00
Stefan Dösinger
e7c55939c4
d3d9: Drop the fixed function varying test.
...
Windows drivers return different values, some don't even draw. I don't know
any app that depends on this.
2011-05-24 12:47:28 +02:00
Stefan Dösinger
f6b30a17b3
d3d9: AMD cards don't clip transformed vertices.
2011-05-24 12:47:28 +02:00
Stefan Dösinger
77c1454cf6
d3d9: Skip the YUV tests when the driver confuses the U and V channels.
2011-05-20 10:34:37 +02:00
Stefan Dösinger
803bad0959
d3d9: Account for another different behavior in the viewport test.
2011-05-20 10:34:30 +02:00
Stefan Dösinger
5107796fc7
d3d9: Disable the zero instance test.
...
It fails on modern Nvidia cards (Win7, Geforce 9600).
2011-05-19 10:09:08 +02:00
Francois Gouget
5920de5ffb
Assorted spelling and case fixes.
2011-05-09 12:09:27 +02:00
Henri Verbeet
ed3f5081a3
d3d9/tests: Check if formats are supported for render targets in pixelshader_blending_test().
2011-05-06 14:23:46 +02:00
Henri Verbeet
86d090ee8e
d3d9/tests: Add a depth blit test.
2011-04-06 21:17:53 +02:00
Henri Verbeet
f212a56819
d3d9/tests: Add a test for partial depth buffer copies.
2011-04-05 11:13:56 +02:00
Stefan Dösinger
5e9884a488
d3d9: Test depth stencil size mismatches.
2011-03-16 16:31:54 +01:00
Austin English
66f5234f3e
d3d9/tests: Make sure to use return values (LLVM/Clang).
2011-02-17 18:33:42 +01:00
Matteo Bruni
c04f8ce055
d3d9/tests: Add a test for clip planes.
2011-02-15 17:24:26 +01:00
Henri Verbeet
82a4373cd0
wined3d: Check if formats are supported as render target in srgbwrite_format_test().
...
Floating point formats in particular may not be supported everywhere.
2011-02-02 12:23:34 +01:00
Henri Verbeet
0fb6005fa8
d3d9/tests: Check another return value in maxmip_test() (LLVM/Clang).
2011-02-02 12:21:20 +01:00
Stefan Dösinger
af641eb4fd
d3d9: Add an sRGB format test.
2011-02-01 12:04:35 +01:00
Stefan Dösinger
73c4fbcc51
d3d9: Work around an odd nvidia windows bug.
2011-02-01 12:03:24 +01:00
Henri Verbeet
4125fa62b9
d3d9/tests: Check ColorFill() return codes in color_fill_test() (LLVM/Clang).
2011-02-01 12:01:06 +01:00
Henri Verbeet
91ac0c37b1
wined3d: Disable vertex shader output clamping.
...
It looks like NV50+ hardware gets you infinities and NaN's in D3D as well for
most things, so we should only need special handling for pow and nrm.
2011-01-25 12:32:38 +01:00
Henri Verbeet
ac2afd08ae
d3d9/tests: Don't draw undefined data in stream_test().
2010-12-07 11:33:20 +01:00
Henri Verbeet
27b72fa847
d3d9/tests: Use GetRenderTargetData() for reading back pixels.
...
This is the recommended way to read back render targets. It's also much faster
on current wined3d, but that's mostly a side effect of imperfections in our
resource location management.
2010-11-23 13:15:29 +01:00
Henri Verbeet
4f651808fc
wined3d: Disallow empty surfaces.
2010-11-18 12:37:36 +01:00
Henri Verbeet
10ccba52e7
d3d9/tests: Fix some failure messages.
2010-11-17 14:01:14 +01:00
Henri Verbeet
e279fa2afd
d3d9/tests: Add a test for INTZ.
2010-11-05 17:15:37 +01:00
Alexandre Julliard
c1b1b6f184
d3d9/tests: Make some variables static.
2010-10-01 13:36:20 +02:00
Henri Verbeet
d911622722
d3d9/tests: Cleanup maxmip_test() a bit.
...
Having the failure message match the actual draw call in particular makes
debugging failures a lot nicer.
2010-09-21 14:16:54 +02:00
Ričardas Barkauskas
b099eeb8c4
d3d9/tests: Test NVDB (depth bounds test) behavior.
2010-09-16 10:12:39 -05:00
Henri Verbeet
bb201bb510
d3d9/tests: Read from the appropriate pixels in test_constant_clamp_vs().
2010-07-30 11:36:03 +02:00
Henri Verbeet
7b3d200ab3
d3d9/tests: Fix an ok() message in pointsize_test().
2010-07-29 17:33:35 +02:00
Henri Verbeet
da0582a624
d3d9/tests: Add a test for handling floating point specials in shaders.
2010-07-29 17:33:35 +02:00
Stefan Dösinger
a554d1e296
d3d9: Remove the shader version varying tests.
...
My Windows 7 installation rejects mixing ps_3_0 with anything other than
vs_3_0 and vice versa, making testing how those versions pass varyings
moot. Since I have never seen an app mixing 3.0 and non-3.0 shaders I
see no reason to keep the tests.
2010-07-26 18:38:32 +02:00
Henri Verbeet
0b630e1430
d3d9/tests: Add a test for clearing render targets in an MRT.
2010-07-23 11:46:51 +02:00
Henri Verbeet
74015090ae
d3d9/tests: Introduce a vertex shader to the MRT test.
2010-07-23 11:46:41 +02:00
Stefan Dösinger
8284f70de8
d3d9: Use a vertex shader in the vpos test.
2010-07-21 13:23:59 +02:00
Stefan Dösinger
bb3fb05c38
d3d9: Use a vertex shader in the vFace test.
2010-07-21 13:23:59 +02:00
Stefan Dösinger
ba0a5ed104
d3d9: Use a vertex shader for the nested loop test.
...
Win7 (or newer Nvidia drivers) don't allow ps_3_0 fragment processing without
vertex shaders. This is interesting on its own, but not part of this test.
2010-07-21 13:23:59 +02:00
Stefan Dösinger
e534e2e2ac
d3d9: Win7+Nvidia returns c2 in COISSUE'd CND.
2010-07-21 13:23:59 +02:00
Stefan Dösinger
24adf40ee1
d3d9: Remove the fog vs sRGB test.
2010-07-21 13:23:59 +02:00
Stefan Dösinger
0190b6cb90
d3d9: Use color_match in the coissue tests.
2010-07-06 19:28:27 +02:00
Stefan Dösinger
b50a008549
d3d9: Windows7 doesn't draw with Viewports bigger than the framebuffer.
...
This is my Geforce 9600 setup here, the failure doesn't occur on all
windows 7 systems. I don't think we can change wined3d's behavior as a
number of games are broken on my Windows installation because they do
not like the extra parameter validation.
2010-07-06 19:28:27 +02:00
Stefan Dösinger
cb4ba6a862
d3d9: Ignore a Windows 7 failure in the d3d9 depth clamp test.
2010-07-06 19:28:27 +02:00
Stefan Dösinger
dd6cabcc1e
d3d9: Pass count=0 when clearing the whole surface.
2010-07-05 12:59:46 +02:00
Stefan Dösinger
218b9cec6f
d3d9: Nvidia drivers don't like unused output formats.
...
Newer nvidia drivers return garbage when using a COUNTx where x is bigger
than the amount of coordinates the texture can consume. So stick to COUNT3 for
volume textures. The tests don't need COUNT4 anyway.
2010-07-05 12:59:46 +02:00
Henri Verbeet
95aaaf2f12
d3d9/tests: Add a test for offscreen point sprites.
2010-06-11 16:22:30 +02:00
Henri Verbeet
c3cda92cf4
d3d9/tests: Remove an invalid point size test.
...
This test tests point size clamping behaviour when POINTSIZE_MAX <
POINTSIZE_MIN, but that behaviour isn't consistent between D3D drivers.
2010-05-28 16:22:26 +02:00
Henri Verbeet
1c12ba44a7
d3d9/test: Introduce point_match() to simplify testing point sizes.
2010-05-28 16:22:26 +02:00
Henri Verbeet
8c92f805f6
d3d9/tests: Don't depend so much on point rasterization rules in pointsize_test().
...
We can create a separate test for point rasterization if we really care about
that, but I doubt we do.
2010-05-28 16:22:26 +02:00
Henri Verbeet
2210b9a6ac
d3d9/tests: Fix a typo.
2010-05-27 14:46:43 +02:00
Henri Verbeet
123bfa20f5
d3d9/tests: Add a shadow sampler test.
2010-05-17 13:20:03 +02:00
Henri Verbeet
2661e9abf7
d3d9/tests: Fix test_cube_wrap() for different texture filtering schemes.
2010-05-03 13:50:37 +02:00
Roderick Colenbrander
67f43418d0
d3d9: Add an initial ColorFill regression test.
2010-04-14 18:00:47 +02:00
Henri Verbeet
6ecdad06a3
d3d9/tests: Add some depth buffer tests.
2010-04-12 11:33:20 +02:00
Paul Vriens
cc20a0da59
d3d9/tests: Initialize a variable (Coverity).
2010-03-31 16:12:32 +02:00
Roderick Colenbrander
342c6c6de5
d3d9: Add source/destination and backbuffer tests for StretchRect.
2010-03-30 13:55:28 +02:00
Stefan Dösinger
48d6167c29
d3d9: Remove old debug messages from the tests.
2010-03-17 16:10:15 +01:00
Henri Verbeet
69861cf873
wined3d: Get rid of the depth range hack.
2010-01-27 11:16:07 +01:00
Henri Verbeet
983f96b82f
d3d9: Add depth clamp tests.
2010-01-27 11:15:49 +01:00
Huw Davies
14b343fcd0
d3d9/tests: Destroy the window after we release the device.
...
Although either order is supposed to work, the former crashes with Wine.
2009-12-03 15:26:52 +01:00
Henri Verbeet
bdad5ace2a
d3d9/tests: Trace the viewport in clear_test().
...
There are some failures in this test on Win7 that appear to be related to the
initial viewport. Perhaps this trace will help narrow it down.
2009-12-01 13:16:22 +01:00
Stefan Dösinger
7f961c0796
d3d9: Abort the x8l8v8u8 test if the format is not supported.
2009-11-12 15:18:09 +01:00
Stefan Dösinger
b49a9cbfd2
d3d9: Run the visual tests in a window.
2009-11-09 19:59:33 +01:00
Stefan Dösinger
69612bb241
d3d9: Make the visual test read the backbuffer.
2009-11-09 19:59:29 +01:00
Henri Verbeet
d17cd37d3b
d3d9/tests: Remove an unused color result.
2009-10-19 11:45:30 +02:00
Henri Verbeet
023446f109
d3d9/tests: Check some more return values (LLVM/Clang).
2009-10-16 13:37:12 +02:00
James Helferty
2b5ff09160
d3d9/tests: Fix position of EndScene in visual test.
2009-10-15 12:06:17 +02:00
Stefan Dösinger
fcd0bc8f54
d3d9: Reduce the YUV test precision.
2009-10-08 12:03:20 +02:00
Stefan Dösinger
eda00d97ad
d3d9: Test viewports that are bigger than the surface.
2009-10-02 15:06:38 +02:00
Stefan Dösinger
dc45657f2c
wined3d: Fix vs_2_0 sgn.
...
vs_2_0's sgn has two extra parameters - temporary registers for the
instruction. This patch fixes the crash of the d3d9:visual test on windows and
properly handles the vs_2_0 version of sgn.
2009-10-02 12:36:59 +02:00
James Helferty
6fa09d1d22
d3d9: Fix some typos in visual test.
2009-09-22 20:19:58 +02:00
Stefan Dösinger
edf1c50b54
wined3d: Handle per-texture max LOD level.
...
GL_TEXTURE_BASE_LEVEL matches the basetexture::SetLOD functionality.
D3DSAMP_MAXMIPLEVEL essentially does the same as SetLOD. The test included in
this patch shows that the smallest mipmap level is used.
2009-08-31 12:18:41 +02:00
Henri Verbeet
ffb38da024
wined3d: Try to force a top-left filling convention.
2009-08-19 14:45:09 +02:00
Jörg Höhle
ba87299402
d3d9/tests: Detect empty graphics driver name.
2009-08-14 11:26:44 +02:00
Henri Verbeet
3b06fc92f4
wined3d: Use EXT_provoking_vertex to match Direct3D's provoking vertex convention.
2009-08-10 13:52:50 +02:00
Henri Verbeet
3115f3357f
d3d9/tests: Use color_match() in a few more places.
2009-07-10 12:13:32 +02:00
Henri Verbeet
7d3beb6b79
d3d: Add a test for releasing the device after destroying the window.
2009-06-29 12:30:32 +02:00
Paul Vriens
d8669f9e41
d3d9/tests: Use color_match ((logical || with non-zero constant).
2009-06-23 11:47:38 +02:00
Stefan Dösinger
2364ce08e5
d3d9: Add a SGN test.
2009-06-22 11:26:14 +02:00
Stefan Dösinger
b93136e0c3
d3d9: Add an aL indexing test.
2009-06-22 11:26:07 +02:00
Henri Verbeet
1e0b1e5487
d3d9: Use color_match() in the fog test.
2009-06-19 13:52:56 +02:00
Stefan Doesinger
f75dadfeb7
d3d9: Accept an alternative oFog->ps_3_0 handling.
2009-06-17 12:19:57 +02:00
Stefan Dösinger
6492622350
wined3d: sincos for vertex shaders.
...
SCS is unfortunately a fragment program only instruction. If we have the NV
extensions we can use SIN and COS. Otherwise we have to approximate sine and
cosine with a taylor series. Luckily we're provided with the necessary
constants by the application.
2009-05-27 11:56:53 +02:00
Stefan Dösinger
31f5b01f9a
wined3d: Add a point size test.
...
It shows that our current behavior (enabling coord_replace on all
units) is correct.
2009-05-08 12:17:04 +02:00
David Adam
758777d1e2
d3d9: Fix a copy/paste error in test.
2009-04-27 13:23:19 +02:00
Michael Stefaniuc
2df012a01a
d3d9/tests: Use LONG instead of long.
2009-03-23 12:41:14 +01:00
Michael Stefaniuc
8e64efeeec
d3d9/tests: Fix some ok() strings in the fog test.
2009-03-12 13:09:54 +01:00
Henri Verbeet
1b9a6fb4e9
d3d9: Fix some sign compare warnings.
2009-03-09 14:44:09 +01:00
Jörg Höhle
7a4ed15884
d3d9/tests: Fix typos in text.
2009-03-04 15:45:43 +01:00
Stefan Dösinger
4aa0591c96
d3d9: Add an alpha blending test.
2009-02-24 16:57:30 +01:00
Stefan Dösinger
e51f2a0e6e
d3d9: Test table fog and exp fog in the shader fog test.
2009-02-11 12:22:00 +01:00
Stefan Dösinger
693d9ded47
wined3d: Properly set the fog frag coord according to the FOGTABLEMODE.
...
This also fixes the test that an earlier patch broke, so the todo_wine can be
removed again.
2009-02-11 12:21:44 +01:00
Marcus Meissner
ace65a527f
d3d9: Initialize hr (Coverity).
2009-01-28 12:10:28 +01:00
Stefan Dösinger
50109aa969
wined3d: Get rid of last_was_foggy_shader & friends.
...
The fog settings do not depend on wether the shader writes to oFog or not,
instead they depend on the FOGVERTEXMODE and FOGTABLEMODE settings, and if a
vertex shader is bound at all.
It works the same way as with the fixed function, and having a vertex shader
is the same as using pretransformed vertices, just that the fog coord comes
from the shader instead of the specular color:
FOGTABLEMODE != NONE: The Z coord is used, oFog is ignored
FOGTABLEMODE == NONE, with VS: oFog is used
FOGTABLEMODE == NONE, no VS, XYZ: Z is used
FOGTABLEMODE == NONE, no VS, XYZRHW: diffuse color is used
2009-01-20 12:45:40 +01:00
Henri Verbeet
9e7b5676a7
d3d9: Remove some superfluous pointer casts.
2009-01-20 12:34:12 +01:00
Stefan Dösinger
903c774263
d3d9: Use D3DFOG_* constants instead of plain integers.
2009-01-13 17:33:08 +01:00
Roderick Colenbrander
a6d28bcc52
d3d9: Relax color matching in bumpmap test.
2009-01-02 11:53:56 +01:00
Francois Gouget
287dee6e78
d3d9/tests: Make some functions static.
2008-12-12 11:41:53 +01:00
Huw Davies
12b9d37120
d3d9/tests: Skip tests if we can't create the D3D9 object.
2008-12-04 12:51:20 +01:00
Stefan Dösinger
e04556bb16
wined3d: Fix D3DFMT_R32F, R16F, G16R16F, ... in the pixel shader.
...
This allows us to drop the load time conversion and the clear
readback hack and replaces it with a color fixup in the fixed
function pipeline replacement.
2008-12-04 12:00:15 +01:00
Stefan Dösinger
cd011661e6
d3d9: Test psize_min vs psize_max vs psize behavior.
...
Add a test that checks what happens if D3DRS_POINTSIZE, D3DRS_POINTSIZE_MIN
and POINTSIZE_MAX have conflicting values. D3DRS_POINTSIZE_MAX trumps
D3DRS_POINTSIZE_MIN, and both MIN and MAX clamp the D3DRS_POINTSIZE value if it is
outside of their range.
2008-11-20 12:17:18 +01:00
Michael Stefaniuc
4f199a10ad
Remove the remaining casts of NULL.
2008-11-03 13:42:09 +01:00
Stefan Dösinger
561ebb355f
d3d9: Test the effect of lighting on the result alpha.
2008-11-03 13:34:13 +01:00
Alexandre Julliard
90fd6a2f4d
d3d9: Convert source files to utf-8.
2008-10-18 19:19:23 +02:00
Francois Gouget
0f38a60dd3
Assorted spelling fixes.
2008-10-10 14:14:05 +02:00
Henri Verbeet
5780b9b56d
d3d9: Use more reasonable texture dimensions.
...
caps.MaxTextureWidth / caps.MaxTextureHeight can potentially be very
large, which could cause a driver to run out of memory. Arguably the
driver shouldn't report such large limits, but there's no reason for
us to create a texture larger than 1024x1024 either.
2008-10-07 12:11:40 +02:00
Stefan Dösinger
631f751fe1
wined3d: Add a test for zenable=false, zwriteenable=false.
...
I suspected that in this situation d3d writes to the z buffer, but the
test shows that I was mistaken
2008-09-11 11:43:42 +02:00
Stefan Dösinger
b294e43206
wined3d: D3DTOP_DOTPRODUCT3 colorop overrides the alphaop.
...
Note that the fix is only implemented in the arbfp and atifs fragment
pipeline. Unfortunately nvrc doesn't support dot3 as alpha operation.
2008-08-27 13:21:24 +02:00
Stefan Dösinger
4767be8cde
wined3d: The final luminance factor is clamped.
2008-08-26 12:07:41 +02:00
Stefan Dösinger
6c6a6a2e61
wined3d: Implement D3DTA_ALPHAREPLICATE in arbfp and atifs.
...
Also adds a simple test for this. In the fixed function and nvrc/nvts
code this already works properly.
2008-08-26 12:07:41 +02:00
Stefan Dösinger
6c12b81552
wined3d: Implement D3DTOP_BUMPENVMAPLUMINANCE.
2008-08-26 12:07:41 +02:00
Stefan Dösinger
b692e86104
wined3d: De-pickify the texbem test.
2008-08-21 13:34:06 +02:00
Stefan Dösinger
a901f0966d
d3d9: Make the bumpmap test less picky.
2008-08-21 13:33:58 +02:00
Stefan Dösinger
bbf313e76a
d3d9: Test for fixed function value clamping.
2008-08-21 13:27:58 +02:00
Stefan Dösinger
6a24b28b75
wined3d: Support YUV formats with GL_APPLE_ycbcr_422.
2008-08-20 12:25:00 +02:00
Stefan Dösinger
ef647c9ad9
d3d9: Skip gracefully if A16R16G16B16 is not supported.
2008-08-04 13:12:20 +02:00
H. Verbeet
d1c835f890
d3d9: Use color_match() in test_vshader_input().
2008-07-24 11:55:27 +02:00
Gerald Pfeifer
971a1e66f4
d3d9: Fix type of loop variable in stream_test() and texop_test().
2008-07-21 15:06:35 +02:00
Stefan Dösinger
3a224fe289
d3d9: Unset the vertex shader in the compare_instructions test.
2008-07-18 11:40:26 +02:00
H. Verbeet
c876c929a2
d3d9: Correct some shader comments.
2008-07-18 11:11:53 +02:00
H. Verbeet
0bebad66f7
d3d9: Replace color_near() with color_match().
2008-07-18 11:11:49 +02:00
H. Verbeet
f902b044d3
d3d9: Use color_match() in vshader_version_varying_test().
...
Also fixes the range on the test, 0x19 plus 1 equals 0x1a, and
0x003c0000 should've been 0x004c0000.
2008-07-17 11:36:51 +02:00
Alexandre Julliard
a08bb2f04c
d3d9: Don't depend on the dxerr9 static library in the tests.
2008-07-08 17:51:46 +02:00
H. Verbeet
674b3b84e9
d3d9: Unset the pixel shader at the end of cnd_test().
...
This prevents failures in subsequent tests when no PS2.0 support is present.
2008-06-25 20:29:12 +02:00
H. Verbeet
873c0afb82
d3d: Allow more imprecision in the texop test.
2008-06-25 20:29:05 +02:00
H. Verbeet
079686b707
d3d9: Use color_match() in fog_with_shader_test().
2008-06-25 10:43:13 +02:00
H. Verbeet
60b5581e1c
d3d9: Use color_match() in alpha_test().
...
Also fixes some of the messages.
2008-06-24 11:48:38 +02:00
Dmitry Timoshkov
1c8994247e
d3d9: Avoid a not needed address-of operator.
2008-06-06 10:29:18 +02:00
H. Verbeet
8c79f13663
d3d9: Test our texop implementation.
2008-05-27 12:04:33 +02:00
H. Verbeet
14b13d0687
d3d: Use an alpha capable backbuffer format in the visual tests.
2008-05-27 12:04:05 +02:00
Dan Kegel
83da377494
d3d9/tests: Another wee bit of slop.
2008-05-21 11:38:14 +02:00
Dan Kegel
480297336b
d3d9/tests: Add missing skip().
2008-05-19 13:35:31 +02:00
Dan Kegel
7d989b7f71
d3d9: shademode_test: Increase slop in color comparison.
2008-05-13 11:24:47 +02:00
Francois Gouget
58665f5db7
d3d9/tests: Fix compilation on systems that don't support nameless unions.
2008-05-06 16:10:07 +02:00
Stefan Dösinger
dc684c060f
d3d9: Dump the device information in the visual tests.
2008-04-24 22:10:01 +02:00
Stefan Dösinger
97d64396eb
d3d9: Check textures for srgb writing, not surfaces.
2008-04-24 22:09:55 +02:00
Stefan Dösinger
27a29a2f6a
d3d9: Make the offscreen format test a bit more tolerant.
2008-04-24 22:09:15 +02:00
Stefan Dösinger
5d49dea373
d3d9: Add a test for NP2 stretchrect.
2008-04-24 11:43:18 +02:00
Marcus Meissner
c59f18121f
d3d9: Initialized 2 variables with NULL.
2008-04-15 14:34:46 +02:00