diff options
| author | 2021-05-29 20:00:06 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:36 -0400 | |
| commit | 1542f31e7979a7bae465d299774268533a130f9b (patch) | |
| tree | 18163b9bf88cb7c37582173a8c0c6e7ec053c812 /src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | |
| parent | glsl: Fix and implement rest of cbuf access (diff) | |
| download | yuzu-1542f31e7979a7bae465d299774268533a130f9b.tar.gz yuzu-1542f31e7979a7bae465d299774268533a130f9b.tar.xz yuzu-1542f31e7979a7bae465d299774268533a130f9b.zip | |
glsl: minor cleanup
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_image.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | 3 |
1 files changed, 0 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 9213375b4..d1f7c5d91 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | |||
| @@ -234,9 +234,6 @@ void EmitImageGather([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] IR::Ins | |||
| 234 | const auto texture{Texture(ctx, info, index)}; | 234 | const auto texture{Texture(ctx, info, index)}; |
| 235 | const auto texel{ctx.reg_alloc.Define(inst, Type::F32x4)}; | 235 | const auto texel{ctx.reg_alloc.Define(inst, Type::F32x4)}; |
| 236 | const auto sparse_inst{PrepareSparse(inst)}; | 236 | const auto sparse_inst{PrepareSparse(inst)}; |
| 237 | if (!offset2.IsEmpty()) { | ||
| 238 | ctx.Add("/*OFFSET 2 IS {}*/", ctx.reg_alloc.Consume(offset2)); | ||
| 239 | } | ||
| 240 | if (!sparse_inst) { | 237 | if (!sparse_inst) { |
| 241 | if (offset.IsEmpty()) { | 238 | if (offset.IsEmpty()) { |
| 242 | ctx.Add("{}=textureGather({},{},int({}));", texel, texture, coords, | 239 | ctx.Add("{}=textureGather({},{},int({}));", texel, texture, coords, |