Conor McCarthy : vkd3d-shader/spirv: Emit a warning if the atomic instruction volatile flag is unhandled.
Module: vkd3d Branch: master Commit: a8dd788f41b72c6af34bf3eea7c6bbc1f3e60822 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/a8dd788f41b72c6af34bf3eea7c6bb... Author: Conor McCarthy <cmccarthy(a)codeweavers.com> Date: Fri Mar 1 16:04:12 2024 +1000 vkd3d-shader/spirv: Emit a warning if the atomic instruction volatile flag is unhandled. --- libs/vkd3d-shader/spirv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c index ba702dd9..0f74687d 100644 --- a/libs/vkd3d-shader/spirv.c +++ b/libs/vkd3d-shader/spirv.c @@ -9248,6 +9248,9 @@ static void spirv_compiler_emit_atomic_instruction(struct spirv_compiler *compil val_id = spirv_compiler_emit_load_src_with_type(compiler, &src[1], VKD3DSP_WRITEMASK_0, component_type); + if (instruction->flags & VKD3DARF_VOLATILE) + WARN("Ignoring 'volatile' attribute.\n"); + operands[i++] = pointer_id; operands[i++] = spirv_compiler_get_constant_uint(compiler, scope); operands[i++] = spirv_compiler_get_constant_uint(compiler, SpvMemorySemanticsMaskNone);
participants (1)
-
Alexandre Julliard