GPU: Enable new guardband culling again.

This commit is contained in:
Unknown W. Brackets committed 2021-10-21 15:29:51 -07:00
1 parent 5e2c4942e9
commit d804d35dcb
3 files changed
+6 -3

No files matched your search

+2 -1
View File
@@ -131,9 +131,10 @@ void GPU_D3D11::CheckGPUFeatures() {
features |= GPU_SUPPORTS_CULL_DISTANCE;
if (!draw_->GetBugs().Has(Draw::Bugs::BROKEN_NAN_IN_CONDITIONAL)) {
// Ignore the compat setting if clip and cull are both enabled.
// 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;
}
}
+2 -1
View File
@@ -228,9 +228,10 @@ void GPU_GLES::CheckGPUFeatures() {
features |= GPU_SUPPORTS_CULL_DISTANCE;
if (!draw_->GetBugs().Has(Draw::Bugs::BROKEN_NAN_IN_CONDITIONAL)) {
// Ignore the compat setting if clip and cull are both enabled.
// 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;
}
}
+2 -1
View File
@@ -246,9 +246,10 @@ void GPU_Vulkan::CheckGPUFeatures() {
}
if (!draw_->GetBugs().Has(Draw::Bugs::BROKEN_NAN_IN_CONDITIONAL)) {
// Ignore the compat setting if clip and cull are both enabled.
// 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;
}
}