diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-09-08 19:06:21 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-09-09 14:26:30 +0200 |
commit | 8d2077666fa71cda672e0f5476f9b91369398a6a (patch) | |
tree | c43bab5f0cd31315ebcf162d375154bd75882163 /src/i965_drv_video.c | |
parent | c27d56290a150b44a87ba2d2df4d0c36ca5ab218 (diff) |
vpp: expose BGRA surface formats on Ivybridge and Haswell.
Allow for vaQuerySurfaceAttributes() to return BGRA and BGRX formats
for VPP on Ivybridge and Haswell. This is supported as both source
and target surface formats.
This fixes VA/EGL interop on Gen7 processors when a BGR[AX] surface
is exported into an EGLImage.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'src/i965_drv_video.c')
-rw-r--r-- | src/i965_drv_video.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c index 9ff6902..03e2e17 100644 --- a/src/i965_drv_video.c +++ b/src/i965_drv_video.c @@ -4937,6 +4937,18 @@ i965_QuerySurfaceAttributes(VADriverContextP ctx, attribs[i].type = VASurfaceAttribPixelFormat; attribs[i].value.type = VAGenericValueTypeInteger; attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE; + attribs[i].value.value.i = VA_FOURCC_BGRA; + i++; + + attribs[i].type = VASurfaceAttribPixelFormat; + attribs[i].value.type = VAGenericValueTypeInteger; + attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE; + attribs[i].value.value.i = VA_FOURCC_BGRX; + i++; + + attribs[i].type = VASurfaceAttribPixelFormat; + attribs[i].value.type = VAGenericValueTypeInteger; + attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE; attribs[i].value.value.i = VA_FOURCC_YV16; i++; } |