diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_image.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp index eb427d8b5..f339f4ade 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | |||
| @@ -71,7 +71,7 @@ std::string PtpOffsets(const IR::Value& offset, const IR::Value& offset2) { | |||
| 71 | const std::array values{offset.InstRecursive(), offset2.InstRecursive()}; | 71 | const std::array values{offset.InstRecursive(), offset2.InstRecursive()}; |
| 72 | if (!values[0]->AreAllArgsImmediates() || !values[1]->AreAllArgsImmediates()) { | 72 | if (!values[0]->AreAllArgsImmediates() || !values[1]->AreAllArgsImmediates()) { |
| 73 | // LOG_WARNING("Not all arguments in PTP are immediate, STUBBING"); | 73 | // LOG_WARNING("Not all arguments in PTP are immediate, STUBBING"); |
| 74 | return ""; | 74 | return "ivec2[](ivec2(0), ivec2(1), ivec2(2), ivec2(3))"; |
| 75 | } | 75 | } |
| 76 | const IR::Opcode opcode{values[0]->GetOpcode()}; | 76 | const IR::Opcode opcode{values[0]->GetOpcode()}; |
| 77 | if (opcode != values[1]->GetOpcode() || opcode != IR::Opcode::CompositeConstructU32x4) { | 77 | if (opcode != values[1]->GetOpcode() || opcode != IR::Opcode::CompositeConstructU32x4) { |
| @@ -340,8 +340,8 @@ void EmitImageFetch([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Inst | |||
| 340 | *sparse_inst, texture, CastToIntVec(coords, info), lod, | 340 | *sparse_inst, texture, CastToIntVec(coords, info), lod, |
| 341 | CastToIntVec(offset, info), texel); | 341 | CastToIntVec(offset, info), texel); |
| 342 | } else { | 342 | } else { |
| 343 | ctx.AddU1("{}=sparseTexelsResidentARB(sparseTexelFetchARB({},{},{},{}));", *sparse_inst, | 343 | ctx.AddU1("{}=sparseTexelsResidentARB(sparseTexelFetchARB({},{},int({}),{}));", |
| 344 | texture, CastToIntVec(coords, info), lod, texel); | 344 | *sparse_inst, texture, CastToIntVec(coords, info), lod, texel); |
| 345 | } | 345 | } |
| 346 | } | 346 | } |
| 347 | 347 | ||