From: James Zhu Date: Sun, 20 Feb 2022 17:07:30 +0000 (-0500) Subject: radeonsi/vcn: add jpeg decode support for gfx11 X-Git-Tag: upstream/22.3.5~9261 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88075b7ea1c81a63b948aa8532160cb469971642;p=platform%2Fupstream%2Fmesa.git radeonsi/vcn: add jpeg decode support for gfx11 Add jpeg decode support for gfx11. Signed-off-by: James Zhu Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- diff --git a/src/gallium/drivers/radeonsi/radeon_vcn_dec.c b/src/gallium/drivers/radeonsi/radeon_vcn_dec.c index 05fc4bf..7b585a4 100755 --- a/src/gallium/drivers/radeonsi/radeon_vcn_dec.c +++ b/src/gallium/drivers/radeonsi/radeon_vcn_dec.c @@ -2764,6 +2764,10 @@ struct pipe_video_codec *radeon_create_decoder(struct pipe_context *context, dec->reg.cntl = RDECODE_VCN2_5_ENGINE_CNTL; dec->jpg.direct_reg = true; break; + case CHIP_GFX1100: + case CHIP_GFX1102: + dec->jpg.direct_reg = true; + break; default: RVID_ERR("VCN is not supported.\n"); goto error;