Bug 98033 - vaCreateSurfaces with VA_FOURCC_IYUV pixel format returns unsupported format
Summary: vaCreateSurfaces with VA_FOURCC_IYUV pixel format returns unsupported format
Status: CLOSED FIXED
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: haihao
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-03 18:31 UTC by U. Artie Eoff
Modified: 2016-10-14 18:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description U. Artie Eoff 2016-10-03 18:31:48 UTC
An attempt to vaCreateSurfaces with a VA_FOURCC_IYUV pixel format surface attribute returns VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT.

For example:

 VASurfaceAttrib attribs;
 attribs.flags = VA_SURFACE_ATTRIB_SETTABLE;
 attribs.type = VASurfaceAttribPixelFormat;
 attribs.value.type = VAGenericValueTypeInteger;
 attribs.value.value.i = VA_FOURCC_IYUV;
 VASurfaceID surfaces;
 VAStatus status = vaCreateSurfaces(dpy, VA_RT_FORMAT_YUV420, 10, 10,
                                    &surfaces, 1, &attribs, 1);

The I_S flag is set in i965_drv_video.c for IYUV which indicates that it should be supported by vaCreateSurfaces.
Comment 1 Sean V Kelley 2016-10-14 18:34:30 UTC
Fixed in commit 7ef513505


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.