diff options
| author | 2023-12-20 23:07:15 -0500 | |
|---|---|---|
| committer | 2023-12-21 21:53:24 -0500 | |
| commit | d5d0d2cb0e7cf6ece3b5168b1f9a6362482515b2 (patch) | |
| tree | 300790ea4b7b27b9422722f143b9d87966ca8113 /src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | |
| parent | emit_glsl_image: Use inlined texelFetch offsets (diff) | |
| download | yuzu-d5d0d2cb0e7cf6ece3b5168b1f9a6362482515b2.tar.gz yuzu-d5d0d2cb0e7cf6ece3b5168b1f9a6362482515b2.tar.xz yuzu-d5d0d2cb0e7cf6ece3b5168b1f9a6362482515b2.zip | |
spirv_emit_context: Fix BaseInstance for OGL spirv
Diffstat (limited to 'src/shader_recompiler/backend/spirv/spirv_emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | 2 |
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 3350f1f85..eb3cc23cc 100644 --- a/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/spirv_emit_context.cpp | |||
| @@ -1427,7 +1427,7 @@ void EmitContext::DefineInputs(const IR::Program& program) { | |||
| 1427 | if (profile.support_vertex_instance_id) { | 1427 | if (profile.support_vertex_instance_id) { |
| 1428 | instance_id = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceId); | 1428 | instance_id = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceId); |
| 1429 | if (loads[IR::Attribute::BaseInstance]) { | 1429 | if (loads[IR::Attribute::BaseInstance]) { |
| 1430 | base_instance = DefineInput(*this, U32[1], true, spv::BuiltIn::BaseVertex); | 1430 | base_instance = DefineInput(*this, U32[1], true, spv::BuiltIn::BaseInstance); |
| 1431 | } | 1431 | } |
| 1432 | } else { | 1432 | } else { |
| 1433 | instance_index = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceIndex); | 1433 | instance_index = DefineInput(*this, U32[1], true, spv::BuiltIn::InstanceIndex); |