message: Sanitise image layouts for revert of partial renderpass layout changes
diff: @@ -997,8 +997,13 @@ bool WrappedVulkan::Serialise_vkEndCommandBuffer(SerialiserType &ser, VkCommandB
  if(barrier.oldLayout != barrier.newLayout &&
  barrier.newLayout != VK_IMAGE_LAYOUT_UNDEFINED)
  + {
  + SanitiseOldImageLayout(barrier.oldLayout);
  + SanitiseNewImageLayout(barrier.newLayout);
  +
  revertBarriers.push_back(barrier);
  }
  + }
  if(!revertBarriers.empty())
  DoPipelineBarrier(commandBuffer, (uint32_t)revertBarriers.size(), revertBarriers.data());
  