i965_drv_video/encode: fix neighbor pixel luma value in VME message
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 21 Apr 2011 04:53:39 +0000 (12:53 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 21 Apr 2011 05:24:18 +0000 (13:24 +0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
i965_drv_video/gen6_vme.c

index 9e95559..145e3a5 100644 (file)
@@ -556,7 +556,7 @@ static int gen6_vme_media_object_intra(VADriverContextP ctx,
                      | (pPixel[10][0] << 8)            
                      | (pPixel[9][0] ) ));             /*M3.2 */
 
-    OUT_BATCH(ctx, ( (pPixel[0][0]     << 24) 
+    OUT_BATCH(ctx, ( (pPixel[16][0]    << 24) 
                      | (pPixel[15][0] << 16)
                      | (pPixel[14][0] << 8)            
                      | (pPixel[13][0] ) ));            /*M3.3 */
@@ -689,7 +689,7 @@ static int gen6_vme_media_object_inter(VADriverContextP ctx,
                      | (pPixel[10][0] << 8)            
                      | (pPixel[9][0] ) ));             /*M3.2 */
 
-    OUT_BATCH(ctx, ( (pPixel[0][0]     << 24) 
+    OUT_BATCH(ctx, ( (pPixel[16][0]    << 24) 
                      | (pPixel[15][0] << 16)
                      | (pPixel[14][0] << 8)            
                      | (pPixel[13][0] ) ));            /*M3.3 */