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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user