diff options
author | Liam <byteslice@airmail.cc> | 2023-12-19 04:20:25 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-12-19 04:25:14 +0100 |
commit | fcfa8b680b6aedd4b51757d4e33e97ef2cdae048 (patch) | |
tree | de1aac013700c0e22d378b8a35f5f20b6e35d161 /src/shader_recompiler/backend | |
parent | shader_recompiler: ignore clip distances beyond driver support level (diff) | |
download | yuzu-fcfa8b680b6aedd4b51757d4e33e97ef2cdae048.tar yuzu-fcfa8b680b6aedd4b51757d4e33e97ef2cdae048.tar.gz yuzu-fcfa8b680b6aedd4b51757d4e33e97ef2cdae048.tar.bz2 yuzu-fcfa8b680b6aedd4b51757d4e33e97ef2cdae048.tar.lz yuzu-fcfa8b680b6aedd4b51757d4e33e97ef2cdae048.tar.xz yuzu-fcfa8b680b6aedd4b51757d4e33e97ef2cdae048.tar.zst yuzu-fcfa8b680b6aedd4b51757d4e33e97ef2cdae048.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp index 4d24e02de..2abc21a17 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp @@ -1528,7 +1528,8 @@ void EmitContext::DefineOutputs(const IR::Program& program) { if (stage == Stage::Fragment) { throw NotImplementedException("Storing ClipDistance in fragment stage"); } - const Id type{TypeArray(F32[1], Const(std::min(8U, profile.max_user_clip_distances)))}; + const Id type{TypeArray( + F32[1], Const(std::min(info.used_clip_distances, profile.max_user_clip_distances)))}; clip_distances = DefineOutput(*this, type, invocations, spv::BuiltIn::ClipDistance); } if (info.stores[IR::Attribute::Layer] && |