[vulkan, qcom] Removing TimelineSemaphore from some older models

This commit is contained in:
CamilleLaVey 2026-01-28 16:03:50 -04:00 committed by Caio Oliveira
parent 15760dad60
commit 14537155a6
No known key found for this signature in database
GPG Key ID: AAAE6C7FD4186B0C
1 changed files with 15 additions and 2 deletions

View File

@ -948,9 +948,22 @@ bool Device::ShouldBoostClocks() const {
return validated_driver && !is_steam_deck && !is_debugging;
}
bool Device::HasTimelineSemaphore() const {
if (GetDriverID() == VK_DRIVER_ID_MESA_TURNIP) {
bool Device::HasTimelineSemaphore() noexcept const {
switch (GetDriverID()) {
case VK_DRIVER_ID_MESA_TURNIP:
return false;
case VK_DRIVER_ID_QUALCOMM_PROPRIETARY: {
const std::string model_name = properties.properties.deviceName;
for (auto const banned : std::array<std::string_view, 4>{
"SM8150", "SM8150-AC", "SM8250", "SM8250-AC",
}) {
if (model_name.find(banned) != std::string::npos) {
LOG_WARNING(Render_Vulkan, "Disabling timeline semaphores on Qualcomm model {}", properties.properties.deviceName);
return false;
}
}
break;
}
}
return features.timeline_semaphore.timelineSemaphore;
}