gl: eglExportDMABUFImageQueryMESA expects modifiers to be an array
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8672>
This commit is contained in:
parent
1ea4632668
commit
146b49fd9e
@ -1043,7 +1043,7 @@ gst_egl_image_export_dmabuf (GstEGLImage * image, int *fd, gint * stride,
|
|||||||
EGLint egl_stride = 0;
|
EGLint egl_stride = 0;
|
||||||
EGLint egl_offset = 0;
|
EGLint egl_offset = 0;
|
||||||
int fourcc;
|
int fourcc;
|
||||||
EGLuint64KHR modifier;
|
EGLuint64KHR modifier[GST_VIDEO_MAX_PLANES] = { 0, };
|
||||||
|
|
||||||
gst_eglExportDMABUFImageQueryMESA =
|
gst_eglExportDMABUFImageQueryMESA =
|
||||||
gst_gl_context_get_proc_address (image->context,
|
gst_gl_context_get_proc_address (image->context,
|
||||||
@ -1069,7 +1069,7 @@ gst_egl_image_export_dmabuf (GstEGLImage * image, int *fd, gint * stride,
|
|||||||
gst_object_unref (display_egl);
|
gst_object_unref (display_egl);
|
||||||
|
|
||||||
if (!gst_eglExportDMABUFImageQueryMESA (egl_display, image->image,
|
if (!gst_eglExportDMABUFImageQueryMESA (egl_display, image->image,
|
||||||
&fourcc, &num_planes, &modifier))
|
&fourcc, &num_planes, modifier))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Don't allow multi-plane dmabufs */
|
/* Don't allow multi-plane dmabufs */
|
||||||
@ -1077,7 +1077,7 @@ gst_egl_image_export_dmabuf (GstEGLImage * image, int *fd, gint * stride,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* FIXME We don't support modifiers */
|
/* FIXME We don't support modifiers */
|
||||||
if (modifier != DRM_FORMAT_MOD_LINEAR)
|
if (modifier[0] != DRM_FORMAT_MOD_LINEAR)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!gst_eglExportDMABUFImageMESA (egl_display, image->image, &egl_fd,
|
if (!gst_eglExportDMABUFImageMESA (egl_display, image->image, &egl_fd,
|
||||||
@ -1086,7 +1086,7 @@ gst_egl_image_export_dmabuf (GstEGLImage * image, int *fd, gint * stride,
|
|||||||
|
|
||||||
GST_DEBUG_OBJECT (image->context, "Export DMABuf with fourcc %"
|
GST_DEBUG_OBJECT (image->context, "Export DMABuf with fourcc %"
|
||||||
GST_FOURCC_FORMAT ", modififers %" G_GUINT64_FORMAT
|
GST_FOURCC_FORMAT ", modififers %" G_GUINT64_FORMAT
|
||||||
", stride %i and offset %i", GST_FOURCC_ARGS (fourcc), modifier,
|
", stride %i and offset %i", GST_FOURCC_ARGS (fourcc), modifier[0],
|
||||||
egl_stride, egl_offset);
|
egl_stride, egl_offset);
|
||||||
|
|
||||||
*fd = egl_fd;
|
*fd = egl_fd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user