Skip to content

anv: allow VK_IMAGE_LAYOUT_UNDEFINED as final layout

Tapani Pälli requested to merge tpalli/mesa:anv-sync2-fix into main
From VK_KHR_synchronization2:
   "Image memory barriers that do not perform an image layout
    transition can be specified by setting oldLayout equal to
    newLayout.

    E.g. the old and new layout can both be set to
    VK_IMAGE_LAYOUT_UNDEFINED, without discarding data in the
    image."

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Edited by Tapani Pälli

Merge request reports