Skip to content

Commit

Permalink
Merge pull request #17222 from hrydgard/broadcom-disable-ubershader
Browse files Browse the repository at this point in the history
Turn off light ubershader generation on Broadcom GPUs.
  • Loading branch information
hrydgard committed Apr 2, 2023
2 parents bb351e0 + 1374fb0 commit 9f6338e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GPU/Vulkan/GPU_Vulkan.cpp
Expand Up @@ -287,6 +287,12 @@ u32 GPU_Vulkan::CheckGPUFeatures() const {
features &= ~GPU_USE_FRAMEBUFFER_FETCH;
// }

// Check for Broadcom, disable ubershader. Should probably include a driver version check too...
// Attempt at fixing issue #16824
if (draw_->GetDeviceCaps().vendor == Draw::GPUVendor::VENDOR_BROADCOM) {
features &= ~GPU_USE_LIGHT_UBERSHADER;
}

return CheckGPUFeaturesLate(features);
}

Expand Down

0 comments on commit 9f6338e

Please sign in to comment.