summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhu, James <[email protected]>2019-09-04 17:59:39 +0000
committerLeo Liu <[email protected]>2019-09-06 08:53:52 -0400
commit878439bba3c817dee70ebe5aa74238bad36ba8e3 (patch)
tree1483e57dad73483fd5e586f255f2dcdfd4f6aa03
parenta3074370d9360c469515beb728570023637907c4 (diff)
radeon: Fix mjpeg issue for ARCTURUS
ARCTURUS mjpeg is using direct register access. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Boyuan Zhang <[email protected]>
-rw-r--r--src/gallium/drivers/radeon/radeon_vcn_dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c
index 0743d47f703..09db9e53d33 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 || sctx->family == CHIP_RENOIR) {
dec->reg.data0 = RDECODE_VCN2_GPCOM_VCPU_DATA0;
dec->reg.data1 = RDECODE_VCN2_GPCOM_VCPU_DATA1;