radeon: Fix mjpeg issue for ARCTURUS
authorZhu, James <James.Zhu@amd.com>
Wed, 4 Sep 2019 17:59:39 +0000 (17:59 +0000)
committerLeo Liu <leo.liu@amd.com>
Fri, 6 Sep 2019 12:53:52 +0000 (08:53 -0400)
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

index 0743d47f703af10e71e2f473dd27364fcf3953d8..09db9e53d334177cb461b04b60b21a576d69d7d1 100644 (file)
@@ -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;