mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
gstvaapisurface: explicitely clear TILING flag if dmabuf
https://bugzilla.gnome.org/show_bug.cgi?id=755072
This commit is contained in:
parent
1dbcc8a0e1
commit
8e7ebaa505
1 changed files with 4 additions and 1 deletions
|
@ -159,7 +159,10 @@ gst_vaapi_surface_create_full (GstVaapiSurface * surface,
|
|||
extbuf.pixel_format = va_format->fourcc;
|
||||
extbuf.width = GST_VIDEO_INFO_WIDTH (vip);
|
||||
extbuf.height = GST_VIDEO_INFO_HEIGHT (vip);
|
||||
extbuf_needed = ! !(flags & GST_VAAPI_SURFACE_ALLOC_FLAG_LINEAR_STORAGE);
|
||||
if (flags & GST_VAAPI_SURFACE_ALLOC_FLAG_LINEAR_STORAGE) {
|
||||
extbuf.flags &= ~VA_SURFACE_EXTBUF_DESC_ENABLE_TILING;
|
||||
extbuf_needed = TRUE;
|
||||
}
|
||||
|
||||
extbuf.num_planes = GST_VIDEO_INFO_N_PLANES (vip);
|
||||
if (flags & GST_VAAPI_SURFACE_ALLOC_FLAG_FIXED_STRIDES) {
|
||||
|
|
Loading…
Reference in a new issue