tests: Skip sampling cube textures on Qualcomm.

They seem to always crash on the Adreno 540 on my OnePlus 5 phone with the
Qualcomm proprietary driver.
This commit is contained in:
Giovanni Mascellani 2024-06-01 21:38:52 +02:00 committed by Henri Verbeet
parent 937a80ead6
commit fe787cf77f
Notes: Henri Verbeet 2024-07-08 18:55:29 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/919
2 changed files with 19 additions and 0 deletions

View File

@ -15616,6 +15616,12 @@ static void test_sample_c_lz(void)
for (i = 0; i < ARRAY_SIZE(tests); ++i) for (i = 0; i < ARRAY_SIZE(tests); ++i)
{ {
if (is_qualcomm_device(device))
{
skip("Sampling a cube texture crashes on Qualcomm.\n");
break;
}
vkd3d_test_push_context("test %u", i); vkd3d_test_push_context("test %u", i);
ps_constant.x = tests[i].d_ref; ps_constant.x = tests[i].d_ref;

View File

@ -417,6 +417,11 @@ static inline bool is_nvidia_device(ID3D12Device *device)
return false; return false;
} }
static inline bool is_qualcomm_device(ID3D12Device *device)
{
return false;
}
static inline bool is_radv_device(ID3D12Device *device) static inline bool is_radv_device(ID3D12Device *device)
{ {
return false; return false;
@ -709,6 +714,14 @@ static inline bool is_nvidia_device(ID3D12Device *device)
return properties.driverID == VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR; return properties.driverID == VK_DRIVER_ID_NVIDIA_PROPRIETARY_KHR;
} }
static inline bool is_qualcomm_device(ID3D12Device *device)
{
VkPhysicalDeviceDriverPropertiesKHR properties;
get_driver_properties(device, NULL, &properties);
return properties.driverID == VK_DRIVER_ID_QUALCOMM_PROPRIETARY_KHR;
}
static inline bool is_radv_device(ID3D12Device *device) static inline bool is_radv_device(ID3D12Device *device)
{ {
VkPhysicalDeviceDriverPropertiesKHR properties; VkPhysicalDeviceDriverPropertiesKHR properties;