spirv: implement Volatile image operand

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6090>
This commit is contained in:
Rhys Perry 2020-06-29 14:56:38 +01:00 committed by Marge Bot
parent 2ba3ffa76c
commit f81e1d2824

View file

@ -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;
}