Skip to content

spirv: Add support for OpCopyMemorySized (AKA memcpy)

Boris Brezillon requested to merge bbrezillon/mesa:nir-vtn-memcpy into master

Resurrect two patches from @airlied adding support for SpvOpCopyMemorySized.

Note that we have a DXIL-specific pass turning those memcpy_derefs into a loop of u8 load_deref+store_derefs. 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_derefs 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

Merge request reports