From 5557950a4b64c45825cfa3a31780e3b639385865 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 23 Oct 2021 08:41:12 -0700 Subject: [PATCH] GPU: Allow range cull on Mali/etc. Previously had been disabled when cullDistance/clipDistance were unsupported, but it's still helpful without those. See #15049. --- GPU/D3D11/GPU_D3D11.cpp | 2 +- GPU/GLES/GPU_GLES.cpp | 2 +- GPU/Vulkan/GPU_Vulkan.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GPU/D3D11/GPU_D3D11.cpp b/GPU/D3D11/GPU_D3D11.cpp index 053116a0e2..f02d93547e 100644 --- a/GPU/D3D11/GPU_D3D11.cpp +++ b/GPU/D3D11/GPU_D3D11.cpp @@ -134,7 +134,7 @@ void GPU_D3D11::CheckGPUFeatures() { // When supported, we can do the depth side of range culling more correctly. const bool supported = draw_->GetDeviceCaps().clipDistanceSupported && draw_->GetDeviceCaps().cullDistanceSupported; const bool disabled = PSP_CoreParameter().compat.flags().DisableRangeCulling; - if (supported && !disabled) { + if (supported || !disabled) { features |= GPU_SUPPORTS_VS_RANGE_CULLING; } } diff --git a/GPU/GLES/GPU_GLES.cpp b/GPU/GLES/GPU_GLES.cpp index 0e7fa660e8..44f92a7d29 100644 --- a/GPU/GLES/GPU_GLES.cpp +++ b/GPU/GLES/GPU_GLES.cpp @@ -231,7 +231,7 @@ void GPU_GLES::CheckGPUFeatures() { // When supported, we can do the depth side of range culling more correctly. const bool supported = draw_->GetDeviceCaps().clipDistanceSupported && draw_->GetDeviceCaps().cullDistanceSupported; const bool disabled = PSP_CoreParameter().compat.flags().DisableRangeCulling; - if (supported && !disabled) { + if (supported || !disabled) { features |= GPU_SUPPORTS_VS_RANGE_CULLING; } } diff --git a/GPU/Vulkan/GPU_Vulkan.cpp b/GPU/Vulkan/GPU_Vulkan.cpp index e5ac26f953..8243b1ec20 100644 --- a/GPU/Vulkan/GPU_Vulkan.cpp +++ b/GPU/Vulkan/GPU_Vulkan.cpp @@ -249,7 +249,7 @@ void GPU_Vulkan::CheckGPUFeatures() { // When supported, we can do the depth side of range culling more correctly. const bool supported = draw_->GetDeviceCaps().clipDistanceSupported && draw_->GetDeviceCaps().cullDistanceSupported; const bool disabled = PSP_CoreParameter().compat.flags().DisableRangeCulling; - if (supported && !disabled) { + if (supported || !disabled) { features |= GPU_SUPPORTS_VS_RANGE_CULLING; } }