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

Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Apr  9 15:12:46 2021 -0400

zink: flag anv for mesa image create wsi

the image creation wsi is used, but the memory creation wsi isn't

Reviewed-by: Erik Faye-Lund <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10180>

---

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

diff --git a/src/gallium/drivers/zink/zink_resource.c 
b/src/gallium/drivers/zink/zink_resource.c
index fc3a29ac5e8..b383ecf4c11 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -425,7 +425,7 @@ resource_object_create(struct zink_screen *screen, const 
struct pipe_resource *t
          .scanout = true,
       };
 
-      if (screen->needs_mesa_wsi && scanout) {
+      if ((screen->needs_mesa_wsi || screen->needs_mesa_flush_wsi) && scanout) 
{
          image_wsi_info.pNext = ici.pNext;
          ici.pNext = &image_wsi_info;
       }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to