anv/dump: Fix post-blit memory barrier
authorChad Versace <chad.versace@intel.com>
Thu, 7 Jul 2016 23:04:59 +0000 (16:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sun, 10 Jul 2016 03:58:33 +0000 (20:58 -0700)
Swap srcAccessMask and dstAccessMask.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_dump.c

index f31bc4ad5b1ddc49299fbd6b2f017d6082c1dd3b..37882ff7d31b6a309ce5e0fd879c5e909db95025 100644 (file)
@@ -175,8 +175,8 @@ dump_image_do_blit(struct anv_device *device, struct dump_image *image,
       0, 0, NULL, 0, NULL, 1,
       &(VkImageMemoryBarrier) {
          .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
-         .srcAccessMask = VK_ACCESS_HOST_READ_BIT,
-         .dstAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT,
+         .srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT,
+         .dstAccessMask = VK_ACCESS_HOST_READ_BIT,
          .oldLayout = VK_IMAGE_LAYOUT_GENERAL,
          .newLayout = VK_IMAGE_LAYOUT_GENERAL,
          .srcQueueFamilyIndex = 0,