diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-06-11 06:41:28 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:38 +0200 |
commit | 7d89a82a4891f78e2c068a24ad3bb56d74c92055 (patch) | |
tree | db21e0994cfd729d7deeaf47eb300d1109539861 /src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp | |
parent | glsl: Address Rodrigo's feedback (diff) | |
download | yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar.gz yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar.bz2 yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar.lz yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar.xz yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.tar.zst yuzu-7d89a82a4891f78e2c068a24ad3bb56d74c92055.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp index af3dadf71..daef5fb84 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_memory.cpp @@ -87,7 +87,7 @@ void EmitLoadStorageU8(EmitContext& ctx, IR::Inst& inst, const IR::Value& bindin void EmitLoadStorageS8(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, const IR::Value& offset) { const auto offset_var{ctx.var_alloc.Consume(offset)}; - ctx.AddS32("{}=bitfieldExtract(int({}_ssbo{}[{}>>2]),int({}%4)*8,8);", inst, ctx.stage_name, + ctx.AddU32("{}=bitfieldExtract(int({}_ssbo{}[{}>>2]),int({}%4)*8,8);", inst, ctx.stage_name, binding.U32(), offset_var, offset_var); } @@ -101,7 +101,7 @@ void EmitLoadStorageU16(EmitContext& ctx, IR::Inst& inst, const IR::Value& bindi void EmitLoadStorageS16(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, const IR::Value& offset) { const auto offset_var{ctx.var_alloc.Consume(offset)}; - ctx.AddS32("{}=bitfieldExtract(int({}_ssbo{}[{}>>2]),int(({}>>1)%2)*16,16);", inst, + ctx.AddU32("{}=bitfieldExtract(int({}_ssbo{}[{}>>2]),int(({}>>1)%2)*16,16);", inst, ctx.stage_name, binding.U32(), offset_var, offset_var); } |