summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-09-08 19:06:21 +0200
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>2014-11-13 17:58:28 +0100
commit5b979df3557bb5fc82b73fd0e26b3dd0e6ad428a (patch)
treed814463ec0532578b594745633a80aef424e8a36 /src
parent06e71ea7289035f33e36242b0da11f72f8b0916d (diff)
downloadlibva-intel-driver-5b979df3557bb5fc82b73fd0e26b3dd0e6ad428a.tar.gz
libva-intel-driver-5b979df3557bb5fc82b73fd0e26b3dd0e6ad428a.tar.bz2
libva-intel-driver-5b979df3557bb5fc82b73fd0e26b3dd0e6ad428a.zip
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. Change-Id: I94f0b174223f94b0a1155e32a17bb23ffb2792cf Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com> Bug-Tizen: TC-1195/related
Diffstat (limited to 'src')
-rw-r--r--src/i965_drv_video.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index ba7c7be..df32813 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -4998,6 +4998,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++;
}