Vulkan: Only use geometry shaders with accurate z.

Just to be safe, since that's what it's most well tested with.
This commit is contained in:
Unknown W. Brackets committed 2022-11-26 23:28:57 -08:00
1 parent 0b375bb357
commit 1d00824528
1 file changed
+2 -1
+2 -1
View File
@@ -232,7 +232,8 @@ u32 GPU_Vulkan::CheckGPUFeatures() const {
features |= GPU_USE_TEXTURE_FLOAT;
// Fall back to geometry shader culling if we can't do vertex range culling.
if (draw_->GetDeviceCaps().geometryShaderSupported) {
// Checking accurate depth here because the old depth path is uncommon and not well tested for this.
if (draw_->GetDeviceCaps().geometryShaderSupported && (features & GPU_USE_ACCURATE_DEPTH) != 0) {
const bool useGeometry = g_Config.bUseGeometryShader && !draw_->GetBugs().Has(Draw::Bugs::GEOMETRY_SHADERS_SLOW_OR_BROKEN);
const bool vertexSupported = draw_->GetDeviceCaps().clipDistanceSupported && draw_->GetDeviceCaps().cullDistanceSupported;
if (useGeometry && (!vertexSupported || (features & GPU_USE_VS_RANGE_CULLING) == 0)) {