mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
tests: Print the device name.
This commit is contained in:
parent
7cfb02cfd3
commit
ecd38f3d1b
Notes:
Alexandre Julliard
2024-04-11 17:03:42 -05:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/765
@ -606,6 +606,7 @@ static bool get_driver_properties(ID3D12Device *device, VkPhysicalDeviceProperti
|
|||||||
static void init_adapter_info(void)
|
static void init_adapter_info(void)
|
||||||
{
|
{
|
||||||
VkPhysicalDeviceDriverPropertiesKHR driver_properties;
|
VkPhysicalDeviceDriverPropertiesKHR driver_properties;
|
||||||
|
VkPhysicalDeviceProperties device_properties;
|
||||||
struct vkd3d_instance *instance;
|
struct vkd3d_instance *instance;
|
||||||
ID3D12Device *device;
|
ID3D12Device *device;
|
||||||
void *libvulkan;
|
void *libvulkan;
|
||||||
@ -627,8 +628,9 @@ LOAD_VK_PFN(vkGetInstanceProcAddr)
|
|||||||
|
|
||||||
if (SUCCEEDED(hr = create_vkd3d_device(instance, D3D_FEATURE_LEVEL_11_0, &IID_ID3D12Device, (void **)&device)))
|
if (SUCCEEDED(hr = create_vkd3d_device(instance, D3D_FEATURE_LEVEL_11_0, &IID_ID3D12Device, (void **)&device)))
|
||||||
{
|
{
|
||||||
if (get_driver_properties(device, NULL, &driver_properties))
|
if (get_driver_properties(device, &device_properties, &driver_properties))
|
||||||
trace("Driver name: %s, driver info: %s.\n", driver_properties.driverName, driver_properties.driverInfo);
|
trace("Driver name: %s, driver info: %s, device name: %s.\n", driver_properties.driverName,
|
||||||
|
driver_properties.driverInfo, device_properties.deviceName);
|
||||||
|
|
||||||
ID3D12Device_Release(device);
|
ID3D12Device_Release(device);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user