From 3c8b1427ca853fb2a94d1610e7157c9dff42cc6c Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 14 Nov 2024 15:13:50 -0500 Subject: [PATCH] glupload: dmabuf: Fix emulated tiled import The added check for LINEAR modifier broke dmabuf import for NV12 emulation (R8/RG88) of all sort (linear and tiled). Fixes !5461 Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/gl/gstglupload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglupload.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglupload.c index 6aa1577d17..008d3a7d56 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglupload.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglupload.c @@ -1507,7 +1507,8 @@ _dma_buf_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps, return FALSE; } - if (!dmabuf->direct && in_info_drm->drm_modifier != DRM_FORMAT_MOD_LINEAR) { + if (!dmabuf->direct && in_info_drm->drm_modifier != DRM_FORMAT_MOD_LINEAR + && in_info_drm->drm_modifier != DRM_FORMAT_MOD_INVALID) { GST_DEBUG_OBJECT (dmabuf->upload, "Indirect uploads are only support for linear formats."); return FALSE;