aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorLuis Alfredo da Silva <luis.adasilvaf@gmail.com>2020-09-15 23:11:22 +0000
committerAndrei Gherzan <andrei@gherzan.ro>2020-09-17 15:25:39 +0100
commitc5633df78832dca24cd584a10f896689b824b84d (patch)
tree64d53e3efa37cb19a7685fc658c6310b0a71d94a /recipes-graphics
parent60b4bcbae57169b487d8e9245c1844a9c70e9d2f (diff)
downloadmeta-raspberrypi-c5633df78832dca24cd584a10f896689b824b84d.tar.gz
meta-raspberrypi-c5633df78832dca24cd584a10f896689b824b84d.tar.bz2
meta-raspberrypi-c5633df78832dca24cd584a10f896689b824b84d.zip
Revert "mesa: querying dma_buf modifiers for specific formats"
This reverts commit 84cb8538cd22586fc82daba38458909cedfec2db. Fixes: - https://gitlab.gnome.org/GNOME/mutter/-/issues/1421 - #711
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/mesa/files/0001-dri2-query-dma-buf-modifiers.patch43
-rw-r--r--recipes-graphics/mesa/mesa_%.bbappend4
2 files changed, 0 insertions, 47 deletions
diff --git a/recipes-graphics/mesa/files/0001-dri2-query-dma-buf-modifiers.patch b/recipes-graphics/mesa/files/0001-dri2-query-dma-buf-modifiers.patch
deleted file mode 100644
index 0bda014..0000000
--- a/recipes-graphics/mesa/files/0001-dri2-query-dma-buf-modifiers.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-mesa: querying dma_buf_modifiers for specific formats
-
-mesa wl_drm protocol is the backend for wayland server side which requires
-the dmabuf modifiers for some DRM formats on specific devices like RPI.
-Currently there is no support of giving any dmabuf modifiers on wl_drm protocol.
-This dma_buf modifiers allows EGL implementations to add extra attributes
-to drm_fourcc format.
-
-Upstream-Status: Pending
-
-Signed-off-by: Balaji Velmurugan <balaji.velmurugan@ltts.com>
-
---- a/src/gallium/state_trackers/dri/dri2.c
-+++ b/src/gallium/state_trackers/dri/dri2.c
-@@ -1366,14 +1366,28 @@ dri2_from_planar(__DRIimage *image, int
- return img;
- }
-
-+static boolean
-+dri2_query_dma_buf_modifiers(__DRIscreen *_screen, int fourcc, int max,
-+ uint64_t *modifiers, unsigned int *external_only,
-+ int *count);
- static __DRIimage *
- dri2_from_fds(__DRIscreen *screen, int width, int height, int fourcc,
- int *fds, int num_fds, int *strides, int *offsets,
- void *loaderPrivate)
- {
-+ uint64_t modifier= DRM_FORMAT_MOD_INVALID;
-+ unsigned int external_only= 0;
-+ int count= 0;
-+ boolean result;
-+ result= dri2_query_dma_buf_modifiers( screen, fourcc, 1, &modifier, &external_only, &count);
-+ return dri2_create_image_from_fd(screen, width, height, fourcc,
-+ modifier, fds, num_fds,
-+ strides, offsets, NULL, loaderPrivate);
-+ #if 0
- return dri2_create_image_from_fd(screen, width, height, fourcc,
- DRM_FORMAT_MOD_INVALID, fds, num_fds,
- strides, offsets, NULL, loaderPrivate);
-+ #endif
- }
-
- static boolean
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend
index d3435e7..eaa46f2 100644
--- a/recipes-graphics/mesa/mesa_%.bbappend
+++ b/recipes-graphics/mesa/mesa_%.bbappend
@@ -1,10 +1,6 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
# DRI3 note:
# With oe-core commit 8509e2e1a87578882b71948ccef3b50ccf1228b3 dri3 is set
# as default. To state out clearly that Raspi needs dri3 and to avoid surprises
# in case oe-core changes this default, we set dri3 explicitly.
-
-SRC_URI_append_rpi = " file://0001-dri2-query-dma-buf-modifiers.patch "
-
PACKAGECONFIG_append_rpi = " gallium vc4 v3d kmsro ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 dri3', '', d)}"
DRIDRIVERS_class-target_rpi = ""