diff options
author | Daniel Stone <[email protected]> | 2017-05-02 09:51:40 +0100 |
---|---|---|
committer | Daniel Stone <[email protected]> | 2017-05-19 09:36:01 +0100 |
commit | afe8c8a2997950cd63076b7c9eba39e1858fee43 (patch) | |
tree | 149efee9182cd2d895253678b1f1745de46ad93a /src/vulkan | |
parent | d9a8bba7f44f7042f0bbd659d0ed342236423dd3 (diff) |
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 <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Cc: [email protected]
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/wsi/wsi_common_wayland.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c index a1904c02b9e..2ff29736aeb 100644 --- a/src/vulkan/wsi/wsi_common_wayland.c +++ b/src/vulkan/wsi/wsi_common_wayland.c @@ -698,7 +698,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) |