diff options
| author | 2021-08-14 00:01:47 -0400 | |
|---|---|---|
| committer | 2021-11-16 22:11:29 +0100 | |
| commit | 68e038404cc0069d9f59068a60b56e67b4321e7a (patch) | |
| tree | 81b5bd2f5129d5ea38dd1f739a8a60cbb4c82bc9 /src/shader_recompiler/backend/spirv/emit_spirv_image.cpp | |
| parent | emit_spirv: Fix RescalingLayout alignment (diff) | |
| download | yuzu-68e038404cc0069d9f59068a60b56e67b4321e7a.tar.gz yuzu-68e038404cc0069d9f59068a60b56e67b4321e7a.tar.xz yuzu-68e038404cc0069d9f59068a60b56e67b4321e7a.zip | |
shader, video_core: Fix GCC build errors
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_image.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_image.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp index 519ce8b9b..4d168a96d 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp | |||
| @@ -243,10 +243,6 @@ Id IsScaled(EmitContext& ctx, const IR::Value& index, Id member_index, u32 base_ | |||
| 243 | if (base_index != 0) { | 243 | if (base_index != 0) { |
| 244 | index_value = ctx.OpIAdd(ctx.U32[1], index_value, ctx.Const(base_index)); | 244 | index_value = ctx.OpIAdd(ctx.U32[1], index_value, ctx.Const(base_index)); |
| 245 | } | 245 | } |
| 246 | const Id word_index{ctx.OpShiftRightArithmetic(ctx.U32[1], index_value, ctx.Const(5u))}; | ||
| 247 | const Id pointer{ctx.OpAccessChain(push_constant_u32, ctx.rescaling_push_constants, | ||
| 248 | member_index, word_index)}; | ||
| 249 | const Id word{ctx.OpLoad(ctx.U32[1], pointer)}; | ||
| 250 | const Id bit_index{ctx.OpBitwiseAnd(ctx.U32[1], index_value, ctx.Const(31u))}; | 246 | const Id bit_index{ctx.OpBitwiseAnd(ctx.U32[1], index_value, ctx.Const(31u))}; |
| 251 | bit = ctx.OpBitFieldUExtract(ctx.U32[1], index_value, bit_index, ctx.Const(1u)); | 247 | bit = ctx.OpBitFieldUExtract(ctx.U32[1], index_value, bit_index, ctx.Const(1u)); |
| 252 | } | 248 | } |