From: Zhao Yakui Date: Mon, 4 Nov 2013 01:43:23 +0000 (+0800) Subject: Fix one error of VME shader for MPEG2 encoding on BDW X-Git-Tag: 1.3.0~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76629022f44ff15c546bcdc01e0884bff04cd8d7;p=platform%2Fupstream%2Flibva-intel-driver.git Fix one error of VME shader for MPEG2 encoding on BDW 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 --- diff --git a/src/shaders/vme/mpeg2_inter_gen8.asm b/src/shaders/vme/mpeg2_inter_gen8.asm index d7cb52d..6dd8599 100644 --- a/src/shaders/vme/mpeg2_inter_gen8.asm +++ b/src/shaders/vme/mpeg2_inter_gen8.asm @@ -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}; diff --git a/src/shaders/vme/mpeg2_inter_gen8.g8b b/src/shaders/vme/mpeg2_inter_gen8.g8b index 7cee07e..6686c9f 100644 --- a/src/shaders/vme/mpeg2_inter_gen8.g8b +++ b/src/shaders/vme/mpeg2_inter_gen8.g8b @@ -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 },