Mesa (main): vulkan/wsi/wayland: remove unnecessary wl_proxy_set_queue call

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 8 10:25:05 UTC 2021


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

Author: Simon Ser <contact at emersion.fr>
Date:   Thu Jun 24 20:27:42 2021 +0200

vulkan/wsi/wayland: remove unnecessary wl_proxy_set_queue call

A wl_proxy inherits its queue from its parent.
display->dmabuf.wl_dmabuf already has its queue correctly set up,
so it's unnecessary to set it again on the child
zwp_linux_buffer_params_v1 proxy.

Signed-off-by: Simon Ser <contact at emersion.fr>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11589>

---

 src/vulkan/wsi/wsi_common_wayland.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c
index 4ebc059a001..d5069ac7e5d 100644
--- a/src/vulkan/wsi/wsi_common_wayland.c
+++ b/src/vulkan/wsi/wsi_common_wayland.c
@@ -954,7 +954,6 @@ wsi_wl_image_init(struct wsi_wl_swapchain *chain,
    if (display->dmabuf.wl_dmabuf) {
       struct zwp_linux_buffer_params_v1 *params =
          zwp_linux_dmabuf_v1_create_params(display->dmabuf.wl_dmabuf);
-      wl_proxy_set_queue((struct wl_proxy *) params, chain->display->queue);
 
       for (int i = 0; i < image->base.num_planes; i++) {
          zwp_linux_buffer_params_v1_add(params,



More information about the mesa-commit mailing list