[PATCH 08/10] d3d10core/tests: Remove test_buffer_data_init().

Józef Kucia jkucia at codeweavers.com
Wed Nov 9 05:35:28 CST 2016


This test fails consistently on Windows 10 with Intel GPU, and MSDN says
that the initial content of the resource memory is undefined. Moreover,
failures in other tests have shown that the initial buffer data is not
always initialized on other vendors GPUs.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/d3d10core/tests/device.c | 28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c
index fbce77d..0633470 100644
--- a/dlls/d3d10core/tests/device.c
+++ b/dlls/d3d10core/tests/device.c
@@ -6931,33 +6931,6 @@ static void test_copy_subresource_region(void)
     release_test_context(&test_context);
 }
 
-static void test_buffer_data_init(void)
-{
-    struct resource_readback rb;
-    ID3D10Buffer *buffer;
-    ID3D10Device *device;
-    unsigned int i;
-
-    if (!(device = create_device()))
-    {
-        skip("Failed to create device.\n");
-        return;
-    }
-
-    buffer = create_buffer(device, D3D10_BIND_SHADER_RESOURCE, 1024, NULL);
-
-    get_buffer_readback(buffer, &rb);
-    for (i = 0; i < rb.width; ++i)
-    {
-        DWORD r = get_readback_color(&rb, i / sizeof(DWORD), 0);
-        ok(!r, "Got unexpected result %#x at offset %u.\n", r, i);
-    }
-    release_resource_readback(&rb);
-
-    ID3D10Buffer_Release(buffer);
-    ID3D10Device_Release(device);
-}
-
 static void test_texture_data_init(void)
 {
     static const float white[] = {1.0f, 1.0f, 1.0f, 1.0f};
@@ -9753,7 +9726,6 @@ START_TEST(device)
     test_fragment_coords();
     test_update_subresource();
     test_copy_subresource_region();
-    test_buffer_data_init();
     test_texture_data_init();
     test_check_multisample_quality_levels();
     test_cb_relative_addressing();
-- 
2.7.3




More information about the wine-patches mailing list