[PATCH] d3d9/tests: Do not test the alpha channel in test_multisample_get_front_buffer_data().
Zebediah Figura
zfigura at codeweavers.com
Wed Jun 1 19:54:06 CDT 2022
This avoids test failures on radeonsi.
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/d3d9/tests/visual.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index 5d8fe10fc79..c53873f76c1 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -17730,7 +17730,7 @@ static void test_multisample_get_front_buffer_data(void)
hr = IDirect3DDevice9_GetFrontBufferData(device, 0, readback);
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
color = getPixelColorFromSurface(readback, 320, 240);
- ok(color == 0x00f0ff0f, "Got unexpected color 0x%08x.\n", color);
+ ok((color & 0x00ffffff) == 0x00f0ff0f, "Got unexpected color 0x%08x.\n", color);
IDirect3DSurface9_Release(readback);
hr = IDirect3DDevice9_CreateTexture(device, 640, 480, 1,
@@ -17742,7 +17742,7 @@ static void test_multisample_get_front_buffer_data(void)
hr = IDirect3DDevice9_GetFrontBufferData(device, 0, readback);
ok(hr == D3D_OK, "Got unexpected hr %#x.\n", hr);
color = getPixelColorFromSurface(readback, 320, 240);
- ok(color == 0x00f0ff0f, "Got unexpected color 0x%08x.\n", color);
+ ok((color & 0x00ffffff) == 0x00f0ff0f, "Got unexpected color 0x%08x.\n", color);
IDirect3DSurface9_Release(readback);
IDirect3DTexture9_Release(texture);
--
2.36.1
More information about the wine-devel
mailing list