From f81e1d2824e7fee7f28c6b3bcdc564265c3658c0 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 29 Jun 2020 14:56:38 +0100 Subject: [PATCH] spirv: implement Volatile image operand Signed-off-by: Rhys Perry Reviewed-by: Boris Brezillon Reviewed-by: Jason Ekstrand Part-of: --- src/compiler/spirv/spirv_to_nir.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index dabb3c674bf..99910d2e448 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -3041,7 +3041,8 @@ vtn_handle_image(struct vtn_builder *b, SpvOp opcode, image.lod = nir_imm_int(&b->nb, 0); } - /* TODO: Volatile. */ + if (operands & SpvImageOperandsVolatileTexelMask) + access |= ACCESS_VOLATILE; break; } @@ -3081,7 +3082,8 @@ vtn_handle_image(struct vtn_builder *b, SpvOp opcode, image.lod = nir_imm_int(&b->nb, 0); } - /* TODO: Volatile. */ + if (operands & SpvImageOperandsVolatileTexelMask) + access |= ACCESS_VOLATILE; break; } -- 2.30.2