Use IMC3 for JPEG decoding
authorXiang, Haihao <haihao.xiang@intel.com>
Mon, 20 May 2013 08:19:41 +0000 (16:19 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 20 May 2013 08:31:16 +0000 (16:31 +0800)
To match the pre-defined VA FOURCC in va.h

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/gen75_mfd.c
src/gen7_mfd.c
src/i965_output_wayland.c

index 0194d6f..6c6c4ff 100644 (file)
@@ -2213,7 +2213,7 @@ gen75_mfd_jpeg_decode_init(VADriverContextP ctx,
 
     /* Current decoded picture */
     obj_surface = decode_state->render_object;
-    i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC('I','M','C','1'), subsampling);
+    i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC('I','M','C','3'), subsampling);
 
     dri_bo_unreference(gen7_mfd_context->pre_deblocking_output.bo);
     gen7_mfd_context->pre_deblocking_output.bo = obj_surface->bo;
index b89b576..1600fe0 100755 (executable)
@@ -1840,7 +1840,7 @@ gen7_mfd_jpeg_decode_init(VADriverContextP ctx,
 
     /* Current decoded picture */
     obj_surface = decode_state->render_object;
-    i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC('I','M','C','1'), subsampling);
+    i965_check_alloc_surface_bo(ctx, obj_surface, 1, VA_FOURCC('I','M','C','3'), subsampling);
 
     dri_bo_unreference(gen7_mfd_context->pre_deblocking_output.bo);
     gen7_mfd_context->pre_deblocking_output.bo = obj_surface->bo;
index fb07b0a..be7f32c 100644 (file)
@@ -249,6 +249,7 @@ va_GetSurfaceBufferWl(
     case VA_FOURCC('Y','V','1','2'):
     case VA_FOURCC('I','4','2','0'):
     case VA_FOURCC('I','M','C','1'):
+    case VA_FOURCC('I','M','C','3'):
         switch (obj_surface->subsampling) {
         case SUBSAMPLE_YUV411:
             drm_format = WL_DRM_FORMAT_YUV411;