mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
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:
1 parent
0b375bb357
commit
1d00824528
1 file changed
+2
-1
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user