Commit b245c37c authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

d3d9: Accept nvidia hardware vp garbage.

Apparently nvidia cards do not like 3.0 vshader + fixed function fragment processing, so accept their result. This has no implementation implications for Wine because we need the code to support the 3.0+ffp combination to handle 3.0+1.x and 3.0+2.0 shader combinations too
parent 3ec49a32
......@@ -5625,9 +5625,10 @@ static void pshader_version_varying_test(IDirect3DDevice9 *device) {
(color & 0x000000ff) == 0x00000000,
"ps_2_0 returned color 0x%08x, expected 0x00203300\n", color);
color = getPixelColor(device, 480, 160);
ok((color & 0x00ff0000) >= 0x00190000 && (color & 0x00ff0000) <= 0x00210000 &&
ok( color == 0x00ffffff /* Nvidia driver garbage with HW vp */ || (
(color & 0x00ff0000) >= 0x00190000 && (color & 0x00ff0000) <= 0x00210000 &&
(color & 0x0000ff00) >= 0x00003200 && (color & 0x0000ff00) <= 0x00003400 &&
(color & 0x000000ff) == 0x00000000,
(color & 0x000000ff) == 0x00000000),
"fixed function fragment processing returned color 0x%08x, expected 0x00203300\n", color);
/* cleanup */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment