Commit 532f17bc authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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().
parent 4eb3ce85
......@@ -6398,7 +6398,7 @@ static void pretransformed_varying_test(IDirect3DDevice9 *device)
struct varying_test_struct tests[] = {
{blendweight_code, NULL, 0x00000000, 0x00191919, "blendweight" , FALSE, TRUE },
{blendindices_code, NULL, 0x00000000, 0x00000000, "blendindices" , FALSE, FALSE },
{blendindices_code, NULL, 0x00000000, 0x00333333, "blendindices" , FALSE, TRUE },
{normal_code, NULL, 0x00000000, 0x004c4c4c, "normal" , FALSE, TRUE },
/* Why does dx not forward the texcoord? */
{texcoord0_code, NULL, 0x00000000, 0x00808c8c, "texcoord0" , FALSE, FALSE },
......@@ -6526,7 +6526,9 @@ static void pretransformed_varying_test(IDirect3DDevice9 *device)
* Needs a replacement pipeline. */
color = getPixelColor(device, 360, 240);
if (tests[i].todo_rhw)
todo_wine ok(color_match(color, tests[i].color_rhw, 1),
todo_wine ok(color_match(color, tests[i].color_rhw, 1)
|| broken(color_match(color, 0x00000000, 1)
&& tests[i].shader_code == blendindices_code),
"Test %s returned color 0x%08x, expected 0x%08x (todo).\n",
tests[i].name, color, tests[i].color_rhw);
else
......
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