The sole purpose of this wl_proxy is to set the queue to
chain->display->queue. However, wl_proxy inherit their queue from
their parent, so the original wl_drm proxy already has its queue
set up properly (inherited from wl_registry).
Signed-off-by: Simon Ser <contact@emersion.fr>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11589>
struct wl_surface * surface;
struct wl_surface * surface;
- struct wl_drm * drm_wrapper;
-
struct wl_callback * frame;
VkExtent2D extent;
struct wl_callback * frame;
VkExtent2D extent;
assert(image->base.drm_modifier == DRM_FORMAT_MOD_INVALID);
image->buffer =
assert(image->base.drm_modifier == DRM_FORMAT_MOD_INVALID);
image->buffer =
- wl_drm_create_prime_buffer(chain->drm_wrapper,
+ wl_drm_create_prime_buffer(display->drm.wl_drm,
image->base.fds[0], /* name */
chain->extent.width,
chain->extent.height,
image->base.fds[0], /* name */
chain->extent.width,
chain->extent.height,
wl_callback_destroy(chain->frame);
if (chain->surface)
wl_proxy_wrapper_destroy(chain->surface);
wl_callback_destroy(chain->frame);
if (chain->surface)
wl_proxy_wrapper_destroy(chain->surface);
- if (chain->drm_wrapper)
- wl_proxy_wrapper_destroy(chain->drm_wrapper);
if (chain->display)
wsi_wl_display_unref(chain->display);
if (chain->display)
wsi_wl_display_unref(chain->display);
for (uint32_t i = 0; i < num_images; i++)
chain->images[i].buffer = NULL;
chain->surface = NULL;
for (uint32_t i = 0; i < num_images; i++)
chain->images[i].buffer = NULL;
chain->surface = NULL;
- chain->drm_wrapper = NULL;
chain->frame = NULL;
bool alpha = pCreateInfo->compositeAlpha ==
chain->frame = NULL;
bool alpha = pCreateInfo->compositeAlpha ==
- if (chain->display->drm.wl_drm) {
- chain->drm_wrapper =
- wl_proxy_create_wrapper(chain->display->drm.wl_drm);
- if (!chain->drm_wrapper) {
- result = VK_ERROR_OUT_OF_HOST_MEMORY;
- goto fail;
- }
- wl_proxy_set_queue((struct wl_proxy *) chain->drm_wrapper,
- chain->display->queue);
- }
-
chain->fifo_ready = true;
for (uint32_t i = 0; i < chain->base.image_count; i++) {
chain->fifo_ready = true;
for (uint32_t i = 0; i < chain->base.image_count; i++) {