Mesa (main): zink: set optimal tiling on swapchain images

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 13 19:17:50 UTC 2022


Module: Mesa
Branch: main
Commit: 85016613324db63bf59774eb3a8c3b213e62b444
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=85016613324db63bf59774eb3a8c3b213e62b444

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed Apr 13 11:36:53 2022 -0400

zink: set optimal tiling on swapchain images

this otherwise breaks kopper

fixes #6294

Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15928>

---

 src/gallium/drivers/zink/zink_resource.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c
index f5ed409b1b4..9f3069e7fe4 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -978,6 +978,7 @@ resource_create(struct pipe_screen *pscreen,
          res->obj->vkflags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT | VK_IMAGE_CREATE_EXTENDED_USAGE_BIT_KHR;
       res->obj->vkusage = cdt->swapchain->scci.imageUsage;
       res->base.b.bind |= PIPE_BIND_DISPLAY_TARGET;
+      res->optimal_tiling = true;
    }
    if (res->obj->is_buffer) {
       res->base.buffer_id_unique = util_idalloc_mt_alloc(&screen->buffer_ids);



More information about the mesa-commit mailing list