Mesa (main): zink: no-op pixmap frontbuffer flush calls

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 28 02:57:47 UTC 2022


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Tue Jun 21 16:32:17 2022 -0400

zink: no-op pixmap frontbuffer flush calls

Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17149>

---

 src/gallium/drivers/zink/zink_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index ba7eff2a507..1dfd22acb49 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -1422,7 +1422,7 @@ zink_flush_frontbuffer(struct pipe_screen *pscreen,
 
    /* if the surface has never been acquired, there's nothing to present,
     * so this is a no-op */
-   if (!zink_kopper_acquired(res->obj->dt, res->obj->dt_idx) && res->obj->last_dt_idx == UINT32_MAX)
+   if (!zink_is_swapchain(res) || (!zink_kopper_acquired(res->obj->dt, res->obj->dt_idx) && res->obj->last_dt_idx == UINT32_MAX))
       return;
 
    /* need to get the actual zink_context, not the threaded context */



More information about the mesa-commit mailing list