summaryrefslogtreecommitdiff
path: root/src/i965_drv_video.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2017-08-09 11:01:33 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2017-08-17 12:09:31 +0800
commit103d1fd461f1e8ba647eb808db0df3d29b10cd08 (patch)
tree221021b08f3ff3b0f9d92763d562393f4b730246 /src/i965_drv_video.c
parent2fab042ddbd4dfefde32684cced22fc1f745781c (diff)
downloadlibva-intel-driver-103d1fd461f1e8ba647eb808db0df3d29b10cd08.tar.gz
Return UYVY format for vaQuerySurfaceAttributes
The driver supports UYVY surface, but UYVY is missed in vaQuerySurfaceAttributes. Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/i965_drv_video.c')
-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 67d11863..2cb99ffd 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -5992,6 +5992,12 @@ 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_UYVY;
+ 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_RGBA;
i++;
@@ -6128,6 +6134,12 @@ 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_UYVY;
+ 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_RGBA;
i++;