From f742b1aa2851d9eb38161e21315bed8f70c63c48 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Thu, 13 Jun 2013 10:23:47 +0800 Subject: [PATCH] test/decode/tinyjpeg: create VA surface with right render target format Signed-off-by: Xiang, Haihao Reviewed-by: Beauchesne, Gwenole (cherry picked from commit 54f686f4a371bf34007ce1ff70e7b74cd9986ad7) --- test/decode/tinyjpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/decode/tinyjpeg.c b/test/decode/tinyjpeg.c index e6e0659..0a544fe 100644 --- a/test/decode/tinyjpeg.c +++ b/test/decode/tinyjpeg.c @@ -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"); -- 2.11.0