Mesa (master): zink: handle VK_IMAGE_LAYOUT_PRESENT_SRC_KHR barriers

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Feb 25 02:32:12 UTC 2021


Module: Mesa
Branch: master
Commit: 55f05638f51475e4602b6a231a469aec8df199f9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=55f05638f51475e4602b6a231a469aec8df199f9

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Thu Oct  8 15:18:31 2020 -0400

zink: handle VK_IMAGE_LAYOUT_PRESENT_SRC_KHR barriers

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9243>

---

 src/gallium/drivers/zink/zink_context.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 2f075f5af7b..effeb05db36 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -1056,6 +1056,9 @@ access_src_flags(VkImageLayout layout)
    case VK_IMAGE_LAYOUT_PREINITIALIZED:
       return VK_ACCESS_HOST_WRITE_BIT;
 
+   case VK_IMAGE_LAYOUT_PRESENT_SRC_KHR:
+      return 0;
+
    default:
       unreachable("unexpected layout");
    }
@@ -1088,6 +1091,9 @@ access_dst_flags(VkImageLayout layout)
    case VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL:
       return VK_ACCESS_TRANSFER_WRITE_BIT;
 
+   case VK_IMAGE_LAYOUT_PRESENT_SRC_KHR:
+      return 0;
+
    default:
       unreachable("unexpected layout");
    }



More information about the mesa-commit mailing list