summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-01-29 02:03:50 +0100
committerGitHub <noreply@github.com>2022-01-29 02:03:50 +0100
commit64a68ccbb4ec533ba2ff378c60ff62c7be6315e9 (patch)
tree7ed65721d3be9b2468eeee51dcc7f9550b1034df /src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp
parentMerge pull request #7784 from german77/ds5 (diff)
parentspirv_atomic: Define U32x2 storage buffers for 64-bit storage atomics (diff)
downloadyuzu-64a68ccbb4ec533ba2ff378c60ff62c7be6315e9.tar
yuzu-64a68ccbb4ec533ba2ff378c60ff62c7be6315e9.tar.gz
yuzu-64a68ccbb4ec533ba2ff378c60ff62c7be6315e9.tar.bz2
yuzu-64a68ccbb4ec533ba2ff378c60ff62c7be6315e9.tar.lz
yuzu-64a68ccbb4ec533ba2ff378c60ff62c7be6315e9.tar.xz
yuzu-64a68ccbb4ec533ba2ff378c60ff62c7be6315e9.tar.zst
yuzu-64a68ccbb4ec533ba2ff378c60ff62c7be6315e9.zip
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp
index 0d37b405c..46ba52a25 100644
--- a/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp
+++ b/src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp
@@ -74,7 +74,7 @@ Id StorageAtomicU64(EmitContext& ctx, const IR::Value& binding, const IR::Value&
const auto [scope, semantics]{AtomicArgs(ctx)};
return (ctx.*atomic_func)(ctx.U64, pointer, scope, semantics, value);
}
- LOG_ERROR(Shader_SPIRV, "Int64 atomics not supported, fallback to non-atomic");
+ LOG_WARNING(Shader_SPIRV, "Int64 atomics not supported, fallback to non-atomic");
const Id pointer{StoragePointer(ctx, ctx.storage_types.U32x2, &StorageDefinitions::U32x2,
binding, offset, sizeof(u32[2]))};
const Id original_value{ctx.OpBitcast(ctx.U64, ctx.OpLoad(ctx.U32[2], pointer))};
@@ -267,7 +267,7 @@ Id EmitStorageAtomicExchange64(EmitContext& ctx, const IR::Value& binding, const
const auto [scope, semantics]{AtomicArgs(ctx)};
return ctx.OpAtomicExchange(ctx.U64, pointer, scope, semantics, value);
}
- LOG_ERROR(Shader_SPIRV, "Int64 atomics not supported, fallback to non-atomic");
+ LOG_WARNING(Shader_SPIRV, "Int64 atomics not supported, fallback to non-atomic");
const Id pointer{StoragePointer(ctx, ctx.storage_types.U32x2, &StorageDefinitions::U32x2,
binding, offset, sizeof(u32[2]))};
const Id original{ctx.OpBitcast(ctx.U64, ctx.OpLoad(ctx.U32[2], pointer))};