From: Thong Thai Date: Sun, 9 Aug 2020 15:13:57 +0000 (-0400) Subject: radeon/vcn: fix jpeg decode for navi10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f8ef37f653bbb1fffa6813697e2ffe21dae2016;p=mesa.git radeon/vcn: fix jpeg decode for navi10 Fixes an issue where the JPEG decode would timeout when decoding certain JPEG files. Signed-off-by: Thong Thai Reviewed-by: Boyuan Zhang Part-of: --- diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec_jpeg.c b/src/gallium/drivers/radeon/radeon_vcn_dec_jpeg.c index e153436f1d7..edf03d77682 100644 --- a/src/gallium/drivers/radeon/radeon_vcn_dec_jpeg.c +++ b/src/gallium/drivers/radeon/radeon_vcn_dec_jpeg.c @@ -260,7 +260,7 @@ static void send_cmd_target_direct(struct radeon_decoder *dec, struct pb_buffer set_reg_jpeg(dec, vcnipUVD_JPEG_INT_EN, COND0, TYPE0, 0xFFFFFFFE); // start engine command - set_reg_jpeg(dec, vcnipUVD_JPEG_CNTL, COND0, TYPE0, 0xE); + set_reg_jpeg(dec, vcnipUVD_JPEG_CNTL, COND0, TYPE0, 0x6); // wait for job completion, wait for job JBSI fetch done set_reg_jpeg(dec, vcnipUVD_JRBC_IB_REF_DATA, COND0, TYPE0, (dec->jpg.bsd_size >> 2));