Fix the base offset of cr(V) surface
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 1 Feb 2012 06:22:56 +0000 (14:22 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 1 Feb 2012 06:24:04 +0000 (14:24 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/i965_post_processing.c

index a4a50e9..d3efe78 100644 (file)
@@ -1212,7 +1212,7 @@ gen7_pp_set_media_rw_message_surface(VADriverContextP ctx, struct i965_post_proc
                                        SURFACE_FORMAT_R8_UNORM, 0,
                                        base_index + 1);
             gen7_pp_set_surface2_state(ctx, pp_context,
-                                       bo, offset[1],
+                                       bo, offset[2],
                                        width[2], height[2], pitch[2],
                                        0, 0,
                                        SURFACE_FORMAT_R8_UNORM, 0,