Fix one error of VME shader for MPEG2 encoding on BDW
authorZhao Yakui <yakui.zhao@intel.com>
Mon, 4 Nov 2013 01:43:23 +0000 (09:43 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Feb 2014 02:22:45 +0000 (10:22 +0800)
Otherwise the MPEG2 encoding will use the incorrect prediction result for the
macroblocks in the first row if the MVP is used

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
src/shaders/vme/mpeg2_inter_gen8.asm
src/shaders/vme/mpeg2_inter_gen8.g8b

index d7cb52d..6dd8599 100644 (file)
@@ -294,7 +294,7 @@ mb_mvp_start:
 add    (1)     tmp_reg0.0<1>:d         mbb_result.0<0,1,0>:d   mbc_result.0<0,1,0>:d   {align1};
 cmp.z.f0.0 (1) null:d                  tmp_reg0.0<0,1,0>:d     0:d     {align1};
 (-f0.0)        jmpi (1)        mb_median_start;
-cmp.nz.f0.0 (1)        null:d  mba_result.0<0,1,0>:d           1:d             {align1};
+cmp.nz.f0.0 (1)        null:d  mba_result.0<0,1,0>:d           0:d             {align1};
 (f0.0) mov     (1)     mbb_result.4<1>:ud              mba_result.4<0,1,0>:ud  {align1};       
 (f0.0) mov     (1)     mbc_result.4<1>:ud              mba_result.4<0,1,0>:ud  {align1};       
 (f0.0) mov     (1)     mbb_result.20<1>:uw             mba_result.20<0,1,0>:uw {align1};       
index 7cee07e..6686c9f 100644 (file)
@@ -98,7 +98,7 @@
    { 0x00000040, 0x24000a28, 0x0a000b00, 0x00000b20 },
    { 0x01000010, 0x20000a20, 0x0e000400, 0x00000000 },
    { 0x00110020, 0x34000000, 0x0e001400, 0x00000080 },
-   { 0x02000010, 0x20000a20, 0x0e000ae0, 0x00000001 },
+   { 0x02000010, 0x20000a20, 0x0e000ae0, 0x00000000 },
    { 0x00010001, 0x2b040208, 0x00000ae4, 0x00000000 },
    { 0x00010001, 0x2b240208, 0x00000ae4, 0x00000000 },
    { 0x00010001, 0x2b141248, 0x00000af4, 0x00000000 },