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

d3d8/tests: Radeon GPUs don't draw from sysmem textures.

parent 830906f3
......@@ -5828,7 +5828,9 @@ static void add_dirty_rect_test(void)
ok(hr == S_OK, "Failed to set texture, hr %#lx.\n", hr);
add_dirty_rect_test_draw(device);
color = getPixelColor(device, 320, 240);
ok(color_match(color, 0x000000ff, 1), "Got unexpected color 0x%08x.\n", color);
/* Radeon GPUs read zero from sysmem textures. */
ok(color_match(color, 0x000000ff, 1) || broken(color_match(color, 0x00000000, 1)),
"Got unexpected color 0x%08x.\n", color);
/* Blitting to the sysmem texture adds a dirty rect. */
fill_surface(surface_src_red, 0x00000000, D3DLOCK_NO_DIRTY_UPDATE);
......
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