summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-04-19 16:23:52 -0300
committerGravatar ameerj2021-07-22 21:51:28 -0400
commit6325601947a523b1aea192a51ccd9e417bf0646c (patch)
tree3c68bd7f8f126e6b49a98953410223eb42fe64a3 /src/shader_recompiler/backend
parentspirv: Replace Constant/ConstantComposite with Const helper (diff)
downloadyuzu-6325601947a523b1aea192a51ccd9e417bf0646c.tar.gz
yuzu-6325601947a523b1aea192a51ccd9e417bf0646c.tar.xz
yuzu-6325601947a523b1aea192a51ccd9e417bf0646c.zip
spirv: Fix ViewportMask
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp
index 214ef9c25..2ffa8c453 100644
--- a/src/shader_recompiler/backend/spirv/emit_context.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_context.cpp
@@ -1135,7 +1135,8 @@ void EmitContext::DefineOutputs(const IR::Program& program) {
1135 viewport_index = DefineOutput(*this, U32[1], invocations, spv::BuiltIn::ViewportIndex); 1135 viewport_index = DefineOutput(*this, U32[1], invocations, spv::BuiltIn::ViewportIndex);
1136 } 1136 }
1137 if (info.stores_viewport_mask && profile.support_viewport_mask) { 1137 if (info.stores_viewport_mask && profile.support_viewport_mask) {
1138 viewport_mask = DefineOutput(*this, TypeArray(U32[1], Const(1u)), std::nullopt); 1138 viewport_mask = DefineOutput(*this, TypeArray(U32[1], Const(1u)), std::nullopt,
1139 spv::BuiltIn::ViewportMaskNV);
1139 } 1140 }
1140 for (size_t index = 0; index < info.stores_generics.size(); ++index) { 1141 for (size_t index = 0; index < info.stores_generics.size(); ++index) {
1141 if (info.stores_generics[index]) { 1142 if (info.stores_generics[index]) {