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.
This commit is contained in:
Unknown W. Brackets 2021-10-23 08:41:12 -07:00
parent 12215a3c60
commit 5557950a4b
3 changed files with 3 additions and 3 deletions

View file

@ -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;
}
}

View file

@ -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;
}
}

View file

@ -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;
}
}