Bug 98033

Summary: vaCreateSurfaces with VA_FOURCC_IYUV pixel format returns unsupported format
Product: libva Reporter: U. Artie Eoff <ullysses.a.eoff>
Component: intelAssignee: haihao <haihao.xiang>
Status: CLOSED FIXED QA Contact: Sean V Kelley <seanvk>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.