GPU: Enable new guardband culling again.

This commit is contained in:
Unknown W. Brackets 2021-10-21 15:29:51 -07:00
parent 5e2c4942e9
commit d804d35dcb
3 changed files with 6 additions and 3 deletions

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

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

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