diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-04-14 07:17:47 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:27 +0200 |
commit | 6f4a1c8dcfb1d54555b139f1d76ac9157ff49d42 (patch) | |
tree | 752adb1d0654a3f84d26c62dc6715194551a4da5 /src/shader_recompiler | |
parent | spirv: Implement alpha test (diff) | |
download | yuzu-6f4a1c8dcfb1d54555b139f1d76ac9157ff49d42.tar yuzu-6f4a1c8dcfb1d54555b139f1d76ac9157ff49d42.tar.gz yuzu-6f4a1c8dcfb1d54555b139f1d76ac9157ff49d42.tar.bz2 yuzu-6f4a1c8dcfb1d54555b139f1d76ac9157ff49d42.tar.lz yuzu-6f4a1c8dcfb1d54555b139f1d76ac9157ff49d42.tar.xz yuzu-6f4a1c8dcfb1d54555b139f1d76ac9157ff49d42.tar.zst yuzu-6f4a1c8dcfb1d54555b139f1d76ac9157ff49d42.zip |
Diffstat (limited to 'src/shader_recompiler')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp index aab32dc52..c2c879a6c 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp @@ -77,7 +77,7 @@ Id StorageAtomicU64(EmitContext& ctx, const IR::Value& binding, const IR::Value& binding, offset, sizeof(u32[2]))}; const Id original_value{ctx.OpBitcast(ctx.U64, ctx.OpLoad(ctx.U32[2], pointer))}; const Id result{(ctx.*non_atomic_func)(ctx.U64, value, original_value)}; - ctx.OpStore(pointer, result); + ctx.OpStore(pointer, ctx.OpBitcast(ctx.U32[2], result)); return original_value; } } // Anonymous namespace |