Module: Mesa Branch: master Commit: 1b8b14172f7cef185152f6c3e516528a57b85a1d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b8b14172f7cef185152f6c3e516528a57b85a1d
Author: Erik Faye-Lund <[email protected]> Date: Thu Feb 4 13:58:12 2021 +0100 zink: ignore irrelevant bind-flags We don't need to create display-targets for shared or scanout, becuase we never even see those in the sw-winsys case. Reviewed-By: Mike Blumenkrantz <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8858> --- src/gallium/drivers/zink/zink_resource.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 6bc8a3d5b5f..43c964c8a5b 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -353,9 +353,7 @@ resource_create(struct pipe_screen *pscreen, else vkBindImageMemory(screen->dev, res->image, res->mem, res->offset); - if (screen->winsys && (templ->bind & (PIPE_BIND_DISPLAY_TARGET | - PIPE_BIND_SCANOUT | - PIPE_BIND_SHARED))) { + if (screen->winsys && (templ->bind & PIPE_BIND_DISPLAY_TARGET)) { struct sw_winsys *winsys = screen->winsys; res->dt = winsys->displaytarget_create(screen->winsys, res->base.bind, _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
