Skip to content

Commit

Permalink
gstvaapisurface: explicitely clear TILING flag if dmabuf
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienIsorce committed Apr 25, 2016
1 parent 445905e commit 603a62e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gst-libs/gst/vaapi/gstvaapisurface.c
Expand Up @@ -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) {
Expand Down

2 comments on commit 603a62e

@ceyusa
Copy link
Contributor

@ceyusa ceyusa commented on 603a62e Apr 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Another ASAP merge.

@CapOM
Copy link
Owner

@CapOM CapOM commented on 603a62e Apr 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, I'll push it this afternoon.

Please sign in to comment.