OSDN Git Service

i965_drv_driver: use the horizontal position of a slice.
authorXiang, Haihao <haihao.xiang@intel.com>
Tue, 15 Sep 2009 05:39:31 +0000 (13:39 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 15 Sep 2009 05:51:25 +0000 (13:51 +0800)
i965_drv_video/i965_media_mpeg2.c

index 17b4679..6a14e9e 100644 (file)
@@ -868,7 +868,7 @@ i965_media_mpeg2_objects(VADriverContextP ctx, struct decode_state *decode_state
                   I915_GEM_DOMAIN_SAMPLER, 0, 
                   slice_param->slice_data_offset + (slice_param->macroblock_offset >> 3));
         OUT_BATCH(ctx, 
-                  ((0 << 24) |     
+                  ((slice_param->slice_horizontal_position << 24) |     
                    (slice_param->slice_vertical_position << 16) |
                    (127 << 8) | 
                    (slice_param->macroblock_offset & 0x7)));