summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2024-01-04 15:53:44 -0500
committerGravatar GitHub2024-01-04 15:53:44 -0500
commit92a331af76cba638f01490eeb0045ca4d6d27df7 (patch)
tree2f66b3dad2ee7c47cb8be910e0cbbaeced97ce6d /src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
parentMerge pull request #12575 from t895/inconsistent-settings-application (diff)
parentSettings: Indicate AMD's compatibility with SPIR-V on OGL (diff)
downloadyuzu-92a331af76cba638f01490eeb0045ca4d6d27df7.tar.gz
yuzu-92a331af76cba638f01490eeb0045ca4d6d27df7.tar.xz
yuzu-92a331af76cba638f01490eeb0045ca4d6d27df7.zip
Merge pull request #12437 from ameerj/gl-amd-fixes
OpenGL: Fixes and workaround updates for AMD
Diffstat (limited to 'src/shader_recompiler/backend/spirv/spirv_emit_context.cpp')
-rw-r--r--src/shader_recompiler/backend/spirv/spirv_emit_context.cpp2
1 files changed, 1 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 89ebab08e..0442adc83 100644
--- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
+++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
@@ -1440,7 +1440,7 @@ void EmitContext::DefineInputs(const IR::Program& program) {
1440 if (profile.support_vertex_instance_id) { 1440 if (profile.support_vertex_instance_id) {
1441 instance_id = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceId); 1441 instance_id = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceId);
1442 if (loads[IR::Attribute::BaseInstance]) { 1442 if (loads[IR::Attribute::BaseInstance]) {
1443 base_instance = DefineInput(*this, U32[1], true, spv::BuiltIn::BaseVertex); 1443 base_instance = DefineInput(*this, U32[1], true, spv::BuiltIn::BaseInstance);
1444 } 1444 }
1445 } else { 1445 } else {
1446 instance_index = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceIndex); 1446 instance_index = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceIndex);