spirv: Add support for OpCopyMemorySized (AKA memcpy)
Resurrect two patches from @airlied adding support for SpvOpCopyMemorySized
.
Note that we have a DXIL-specific pass turning those memcpy_deref
s into a loop of u8 load_deref+store_deref
s. I didn't make it part of this patchset since this approach is sub-optimal when we have alignment info, but we probably want to have a generic lowering pass to turn memcpy_deref
s into copy_deref
loops.
This MR is based on !5900 (closed) which adds the {SRC,DST}_ALIGN_{MUL,OFFSET}
indices and the vtn_get_mem_operands()
helper.
/cc @karolherbst @airlied @jenatali @jekstrand