Commit afe8c8a2 authored by Daniel Stone's avatar Daniel Stone

vulkan/wsi/wayland: Remove roundtrip when creating image

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's avatarDaniel Stone <>
Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <>
parent d9a8bba7
...@@ -698,7 +698,6 @@ wsi_wl_image_init(struct wsi_wl_swapchain *chain, ...@@ -698,7 +698,6 @@ wsi_wl_image_init(struct wsi_wl_swapchain *chain,
offset, offset,
row_pitch, row_pitch,
0, 0, 0, 0 /* unused */); 0, 0, 0, 0 /* unused */);
close(fd); close(fd);
if (!image->buffer) if (!image->buffer)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment