OSDN Git Service

test/decode/tinyjpeg: create VA surface with right render target format
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 13 Jun 2013 02:23:47 +0000 (10:23 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 24 Jun 2015 05:23:53 +0000 (13:23 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Beauchesne, Gwenole <gwenole.beauchesne@intel.com>
(cherry picked from commit 54f686f4a371bf34007ce1ff70e7b74cd9986ad7)

test/decode/tinyjpeg.c

index e6e0659..0a544fe 100644 (file)
@@ -698,7 +698,7 @@ int tinyjpeg_decode(struct jdec_private *priv)
            type = "Format_400P";
        }
 
-       va_status = vaCreateSurfaces(va_dpy,VA_RT_FORMAT_YUV420,
+       va_status = vaCreateSurfaces(va_dpy,surface_type,
                                     priv->width[scan_num],priv->height[scan_num], //alignment?
                                     &surface_id, 1, &forcc, 1);
        CHECK_VASTATUS(va_status, "vaCreateSurfaces");