OSDN Git Service

vpp chroma-formats: report supported chroma formats for vpp
authorDaniel Charles <daniel.charles@intel.com>
Thu, 13 Oct 2016 16:58:08 +0000 (09:58 -0700)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 17 Oct 2016 02:51:03 +0000 (10:51 +0800)
vpp to report the chroma formats according to what's allowed
by vaCreateSurfaces2

Signed-off-by: Daniel Charles <daniel.charles@intel.com>
Reviewed-by: Xiang, Haihao <haihao.xiang@intel.com>
src/i965_drv_video.c

index c914616..7f2146e 100644 (file)
@@ -847,8 +847,11 @@ i965_get_default_chroma_formats(VADriverContextP ctx, VAProfile profile,
         break;
 
     case VAProfileNone:
-       if(HAS_VPP_P010(i965))
+        if (HAS_VPP_P010(i965))
             chroma_formats |= VA_RT_FORMAT_YUV420_10BPP;
+
+        if (HAS_VPP(i965))
+            chroma_formats |= VA_RT_FORMAT_YUV422 | VA_RT_FORMAT_RGB32;
         break;
 
     case VAProfileVP9Profile0: