Browse Source
[vk, qcom, turnip] TimelineSemaphore removal
eds-true-adreno-fixes
CamilleLaVey
3 weeks ago
committed by
Caio Oliveira
No known key found for this signature in database
GPG Key ID: AAAE6C7FD4186B0C
1 changed files with
1 additions and
11 deletions
-
src/video_core/vulkan_common/vulkan_device.cpp
|
|
|
@ -1010,19 +1010,9 @@ bool Device::ShouldBoostClocks() const { |
|
|
|
|
|
|
|
bool Device::HasTimelineSemaphore() const { |
|
|
|
const VkDriverIdKHR driver_id = GetDriverID(); |
|
|
|
if (driver_id == VK_DRIVER_ID_MESA_TURNIP) { |
|
|
|
if (driver_id == VK_DRIVER_ID_MESA_TURNIP || driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
if (driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY) { |
|
|
|
// Drop the variant bits before comparing to the minimum supported timeline build.
|
|
|
|
const u32 driver_version = (GetDriverVersion() << 3) >> 3; |
|
|
|
constexpr u32 min_timeline_driver = VK_MAKE_API_VERSION(0, 500, 800, 51); |
|
|
|
if (driver_version < min_timeline_driver) { |
|
|
|
// Older Qualcomm stacks still need binary fences for stability.
|
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
return features.timeline_semaphore.timelineSemaphore; |
|
|
|
} |
|
|
|
|
|
|
|
|