From: Rhys Perry Date: Mon, 29 Jun 2020 13:56:38 +0000 (+0100) Subject: spirv: implement Volatile image operand X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f81e1d2824e7fee7f28c6b3bcdc564265c3658c0;p=mesa.git spirv: implement Volatile image operand Signed-off-by: Rhys Perry Reviewed-by: Boris Brezillon Reviewed-by: Jason Ekstrand Part-of: --- 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; }