d3d11/tests: Print adapter information.

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-02-02 14:35:19 +01:00 committed by Alexandre Julliard
parent 5f46f8f05b
commit c7941b5933
1 changed files with 16 additions and 0 deletions

View File

@ -1109,6 +1109,20 @@ static void get_device_adapter_desc(ID3D11Device *device, DXGI_ADAPTER_DESC *ada
IDXGIAdapter_Release(adapter);
}
static void print_adapter_info(void)
{
DXGI_ADAPTER_DESC adapter_desc;
ID3D11Device *device;
if (!(device = create_device(NULL)))
return;
get_device_adapter_desc(device, &adapter_desc);
trace("Adapter: %s, %04x:%04x.\n", wine_dbgstr_w(adapter_desc.Description),
adapter_desc.VendorId, adapter_desc.DeviceId);
ID3D11Device_Release(device);
}
static BOOL is_warp_device(ID3D11Device *device)
{
DXGI_ADAPTER_DESC adapter_desc;
@ -24802,6 +24816,8 @@ START_TEST(d3d11)
use_adapter_idx = atoi(argv[++i]);
}
print_adapter_info();
test_create_device();
run_for_each_feature_level(test_device_interfaces);
test_get_immediate_context();