diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2020-12-08 00:38:17 +0300 |
---|---|---|
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | 2020-12-08 00:38:17 +0300 |
commit | 8d6ae7f2a817751fad151168fa10ce28ee0869d8 (patch) | |
tree | 281032f7ec07c41589aa094bd165cc2a98f2d3a7 /meta-raspberrypi/recipes-graphics/mesa/files/0001-dri2-query-dma-buf-modifiers.patch | |
parent | c16fb8893b19075db4bcf3b5bf33c1db8c3ca2bd (diff) | |
parent | 5da3c2284560a7e08ffafd03c5b5ba44a3242228 (diff) | |
download | openbmc-8d6ae7f2a817751fad151168fa10ce28ee0869d8.tar.xz |
Merge tag '0.26' of ssh://git-amr-1.devtools.intel.com:29418/openbmc-openbmc into update
Diffstat (limited to 'meta-raspberrypi/recipes-graphics/mesa/files/0001-dri2-query-dma-buf-modifiers.patch')
-rw-r--r-- | meta-raspberrypi/recipes-graphics/mesa/files/0001-dri2-query-dma-buf-modifiers.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/meta-raspberrypi/recipes-graphics/mesa/files/0001-dri2-query-dma-buf-modifiers.patch b/meta-raspberrypi/recipes-graphics/mesa/files/0001-dri2-query-dma-buf-modifiers.patch deleted file mode 100644 index 0bda01450..000000000 --- a/meta-raspberrypi/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 |