[Mesa-dev] [PATCH v2 2/6] vulkan/wsi/wayland: Remove roundtrip when creating image
Daniel Stone
daniels at collabora.com
Tue May 16 10:05:46 UTC 2017
There's no need to call wl_display_roundtrip() after trying to create a
buffer through wl_drm; if it succeeds then everything is fine, and if it
fails, then we get a fatal protocol error so can't recover anyway.
Additionally, doing a roundtrip on the default / main application queue,
is destructive anyway, so would need to be its own queue.
Signed-off-by: Daniel Stone <daniels at collabora.com>
Cc: mesa-stable at lists.freedesktop.org
---
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 9c246b8d5c..014ea13d65 100644
--- a/src/vulkan/wsi/wsi_common_wayland.c
+++ b/src/vulkan/wsi/wsi_common_wayland.c
@@ -672,7 +672,6 @@ wsi_wl_image_init(struct wsi_wl_swapchain *chain,
offset,
row_pitch,
0, 0, 0, 0 /* unused */);
- wl_display_roundtrip(chain->display->display);
close(fd);
if (!image->buffer)
--
2.13.0
More information about the mesa-dev
mailing list