mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
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:
parent
2ba3ffa76c
commit
f81e1d2824
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue