egl/wayland: set the correct modifier for the linear_copy image
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 27 Nov 2023 16:36:54 +0000 (17:36 +0100)
committerEric Engestrom <eric@engestrom.ch>
Mon, 4 Dec 2023 21:36:35 +0000 (21:36 +0000)
commitd4626797bf344547c498f7c8b023c25650ee8630
treea270e53edbd7b967472ff7a916609808433787a2
parentce68ed2d1c2e0a972a1d4bd47d1aba4340c2a207
egl/wayland: set the correct modifier for the linear_copy image

linear_copy_display_gpu_image is created using DRM_FORMAT_MOD_LINEAR,
so use createImageFromDmaBufs3 to be able to pass the modifier when
importing it on the render GPU.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9282
Reviewed-by: Simon Ser <contact@emersion.fr>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26337>
(cherry picked from commit 5119e0adc3e3d0bbf3fa162b00d952d71d53c6fe)
.pick_status.json
src/egl/drivers/dri2/platform_wayland.c