Merge pull request #15050 from unknownbrackets/guardband

GPU: Allow range cull on Mali/etc.
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2021-10-23 17:46:38 +02:00
commit 067f45d560
3 files changed
+3 -3

No files matched your search

+1 -1
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;
}
}
+1 -1
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;
}
}
+1 -1
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;
}
}