radeon: Fix mjpeg issue for ARCTURUS

Submitted by Zhu, James on Sept. 4, 2019, 5:59 p.m.

Details

Message ID 1567619972-26337-1-git-send-email-James.Zhu@amd.com
State New
Headers show
Series "radeon: Fix mjpeg issue for ARCTURUS" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Zhu, James Sept. 4, 2019, 5:59 p.m.
ARCTURUS mjpeg is using direct register access.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
---
 src/gallium/drivers/radeon/radeon_vcn_dec.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c
index 77bfe18..aa70802 100644
--- a/src/gallium/drivers/radeon/radeon_vcn_dec.c
+++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c
@@ -1607,6 +1607,7 @@  struct pipe_video_codec *radeon_create_decoder(struct pipe_context *context,
 		dec->reg.data1 = RDECODE_VCN2_5_GPCOM_VCPU_DATA1;
 		dec->reg.cmd = RDECODE_VCN2_5_GPCOM_VCPU_CMD;
 		dec->reg.cntl = RDECODE_VCN2_5_ENGINE_CNTL;
+		dec->jpg.direct_reg = true;
 	} else if (sctx->family >= CHIP_NAVI10) {
 		dec->reg.data0 = RDECODE_VCN2_GPCOM_VCPU_DATA0;
 		dec->reg.data1 = RDECODE_VCN2_GPCOM_VCPU_DATA1;