tests: Detect when WARP is used.

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:
Józef Kucia 2018-12-11 15:47:59 +01:00 committed by Alexandre Julliard
parent c090602e0a
commit f359108658
3 changed files with 10 additions and 4 deletions

View File

@ -21833,7 +21833,7 @@ START_TEST(d3d12)
{
parse_args(argc, argv);
enable_d3d12_debug_layer(argc, argv);
print_adapter_info();
init_adapter_info();
run_test(test_create_device);
run_test(test_node_count);

View File

@ -267,7 +267,7 @@ static IUnknown *create_adapter(void)
return adapter;
}
static void print_adapter_info(void)
static void init_adapter_info(void)
{
IDXGIAdapter *dxgi_adapter;
DXGI_ADAPTER_DESC desc;
@ -286,6 +286,12 @@ static void print_adapter_info(void)
trace("Adapter: %04x:%04x.\n", desc.VendorId, desc.DeviceId);
if (desc.VendorId == 0x1414 && desc.DeviceId == 0x008c)
{
trace("Using WARP device.\n");
use_warp_device = true;
}
IDXGIAdapter_Release(dxgi_adapter);
}
#else
@ -294,7 +300,7 @@ static IUnknown *create_adapter(void)
return NULL;
}
static void print_adapter_info(void) {}
static void init_adapter_info(void) {}
#endif
static ID3D12Device *create_device(void)

View File

@ -154,7 +154,7 @@ START_TEST(d3d12_invalid_usage)
{
parse_args(argc, argv);
enable_d3d12_debug_layer(argc, argv);
print_adapter_info();
init_adapter_info();
run_test(test_invalid_texture_resource_barriers);
}