Merge pull request #17807 from hrydgard/re-enable-framebuffer-fetch

Re-enable framebuffer fetch for blend where available.
This commit is contained in:
Henrik Rydgård 2023-07-30 11:37:20 +02:00 committed by GitHub
commit 47bbddad0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -607,6 +607,10 @@ u32 GPUCommonHW::CheckGPUFeatures() const {
features |= GPU_USE_VS_RANGE_CULLING; features |= GPU_USE_VS_RANGE_CULLING;
} }
if (draw_->GetDeviceCaps().framebufferFetchSupported) {
features |= GPU_USE_FRAMEBUFFER_FETCH;
}
if (draw_->GetShaderLanguageDesc().bitwiseOps) { if (draw_->GetShaderLanguageDesc().bitwiseOps) {
features |= GPU_USE_LIGHT_UBERSHADER; features |= GPU_USE_LIGHT_UBERSHADER;
} }