mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07:00
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:
parent
c090602e0a
commit
f359108658
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user