Fix the width of the UV surface for AVS on IVB
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 27 Jun 2012 07:20:22 +0000 (15:20 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 27 Jun 2012 07:20:22 +0000 (15:20 +0800)
The width is specified in units of pixel.

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

index 4bb2a74..5b0f09c 100755 (executable)
@@ -1388,7 +1388,7 @@ gen7_pp_set_media_rw_message_surface(VADriverContextP ctx, struct i965_post_proc
         offset[0] = obj_image->image.offsets[0];
 
         if (interleaved_uv) {
-            width[1] = obj_image->image.width;
+            width[1] = obj_image->image.width / 2;
             height[1] = obj_image->image.height / 2;
             pitch[1] = obj_image->image.pitches[1];
             offset[1] = obj_image->image.offsets[1];