d3d10core/tests: Mark sRGB RTV clear test as broken on Nvidia drivers.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2b921fed4b
commit
0dd6771b62
|
@ -844,6 +844,17 @@ static BOOL is_amd_device(ID3D10Device *device)
|
||||||
return adapter_desc.VendorId == 0x1002;
|
return adapter_desc.VendorId == 0x1002;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static BOOL is_nvidia_device(ID3D10Device *device)
|
||||||
|
{
|
||||||
|
DXGI_ADAPTER_DESC adapter_desc;
|
||||||
|
|
||||||
|
if (!strcmp(winetest_platform, "wine"))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
get_device_adapter_desc(device, &adapter_desc);
|
||||||
|
return adapter_desc.VendorId == 0x10de;
|
||||||
|
}
|
||||||
|
|
||||||
static BOOL is_d3d11_interface_available(ID3D10Device *device)
|
static BOOL is_d3d11_interface_available(ID3D10Device *device)
|
||||||
{
|
{
|
||||||
ID3D11Device *d3d11_device;
|
ID3D11Device *d3d11_device;
|
||||||
|
@ -8130,7 +8141,9 @@ static void test_clear_render_target_view(void)
|
||||||
ID3D10RenderTargetView *rtv, *srgb_rtv;
|
ID3D10RenderTargetView *rtv, *srgb_rtv;
|
||||||
D3D10_RENDER_TARGET_VIEW_DESC rtv_desc;
|
D3D10_RENDER_TARGET_VIEW_DESC rtv_desc;
|
||||||
D3D10_TEXTURE2D_DESC texture_desc;
|
D3D10_TEXTURE2D_DESC texture_desc;
|
||||||
|
struct resource_readback rb;
|
||||||
ID3D10Device *device;
|
ID3D10Device *device;
|
||||||
|
unsigned int i, j;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
if (!init_test_context(&test_context))
|
if (!init_test_context(&test_context))
|
||||||
|
@ -8203,15 +8216,20 @@ static void test_clear_render_target_view(void)
|
||||||
ID3D10Device_ClearRenderTargetView(device, rtv, color);
|
ID3D10Device_ClearRenderTargetView(device, rtv, color);
|
||||||
check_texture_color(texture, expected_color, 1);
|
check_texture_color(texture, expected_color, 1);
|
||||||
|
|
||||||
if (!is_warp_device(device))
|
ID3D10Device_ClearRenderTargetView(device, srgb_rtv, color);
|
||||||
|
get_texture_readback(texture, 0, &rb);
|
||||||
|
for (i = 0; i < 4; ++i)
|
||||||
{
|
{
|
||||||
ID3D10Device_ClearRenderTargetView(device, srgb_rtv, color);
|
for (j = 0; j < 4; ++j)
|
||||||
todo_wine check_texture_color(texture, expected_srgb_color, 1);
|
{
|
||||||
}
|
BOOL broken_device = is_warp_device(device) || is_nvidia_device(device);
|
||||||
else
|
DWORD color = get_readback_color(&rb, 80 + i * 160, 60 + j * 120);
|
||||||
{
|
todo_wine ok(compare_color(color, expected_srgb_color, 1)
|
||||||
win_skip("sRGB clears are broken on WARP.\n");
|
|| broken(compare_color(color, expected_color, 1) && broken_device),
|
||||||
|
"Got unexpected color 0x%08x.\n", color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
release_resource_readback(&rb);
|
||||||
|
|
||||||
ID3D10RenderTargetView_Release(srgb_rtv);
|
ID3D10RenderTargetView_Release(srgb_rtv);
|
||||||
ID3D10RenderTargetView_Release(rtv);
|
ID3D10RenderTargetView_Release(rtv);
|
||||||
|
|
Loading…
Reference in New Issue