From a0eb938c7fad9556431f247e92efe53211c57f78 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Tue, 9 Nov 2021 15:10:48 +0100 Subject: [PATCH] tests: Only check lower 24-bit when testing D24 copies. Signed-off-by: Hans-Kristian Arntzen --- tests/d3d12_copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/d3d12_copy.c b/tests/d3d12_copy.c index c31f12c6..8f262f6e 100644 --- a/tests/d3d12_copy.c +++ b/tests/d3d12_copy.c @@ -619,7 +619,7 @@ void test_copy_buffer_to_depth_stencil(void) for (x = 0; x < 2; x++) { uint32_t v = get_readback_uint(&rb_depth, x, y, 0); - ok(v == tests[i].output_depth_24 || v == tests[i].input_depth, "Depth is 0x%x\n", v); + ok((v & 0xffffffu) == tests[i].output_depth_24 || v == tests[i].input_depth, "Depth is 0x%x\n", v); } }