mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7891>
This commit is contained in:
parent
347393be36
commit
3c8b1427ca
1 changed files with 2 additions and 1 deletions
|
@ -1507,7 +1507,8 @@ _dma_buf_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps,
|
||||||
return FALSE;
|
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,
|
GST_DEBUG_OBJECT (dmabuf->upload,
|
||||||
"Indirect uploads are only support for linear formats.");
|
"Indirect uploads are only support for linear formats.");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue