radeon/vcn: add defines for vcn 2.0 jpeg
authorBoyuan Zhang <boyuan.zhang@amd.com>
Tue, 5 Mar 2019 21:51:37 +0000 (16:51 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:12 +0000 (15:51 -0400)
Add neccesary register defines for vcn 2.0 jpeg deocde

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeon/radeon_vcn_dec.h

index 0c6de46b5c7242f2e1c3c132e01570cd6414da6d..3ba42f3b77c87fd0b4974ba0b29c21170e494d75 100644 (file)
 #define mmUVD_SOFT_RESET                               0x05a0
 #define mmUVD_SOFT_RESET_BASE_IDX                      1
 
+#define vcnipUVD_JPEG_DEC_SOFT_RST                     0x402f
+#define vcnipUVD_JRBC_IB_COND_RD_TIMER                 0x408e
+#define vcnipUVD_JRBC_IB_REF_DATA                      0x408f
+#define vcnipUVD_LMI_JPEG_READ_64BIT_BAR_HIGH          0x40e1
+#define vcnipUVD_LMI_JPEG_READ_64BIT_BAR_LOW           0x40e0
+#define vcnipUVD_JPEG_RB_BASE                          0x4001
+#define vcnipUVD_JPEG_RB_SIZE                          0x4004
+#define vcnipUVD_JPEG_RB_WPTR                          0x4002
+#define vcnipUVD_JPEG_PITCH                            0x401f
+#define vcnipUVD_JPEG_UV_PITCH                         0x4020
+#define vcnipJPEG_DEC_ADDR_MODE                                0x4027
+#define vcnipJPEG_DEC_Y_GFX10_TILING_SURFACE           0x4024
+#define vcnipJPEG_DEC_UV_GFX10_TILING_SURFACE          0x4025
+#define vcnipUVD_LMI_JPEG_WRITE_64BIT_BAR_HIGH         0x40e3
+#define vcnipUVD_LMI_JPEG_WRITE_64BIT_BAR_LOW          0x40e2
+#define vcnipUVD_JPEG_INDEX                            0x402c
+#define vcnipUVD_JPEG_DATA                             0x402d
+#define vcnipUVD_JPEG_TIER_CNTL2                       0x400f
+#define vcnipUVD_JPEG_OUTBUF_RPTR                      0x401e
+#define vcnipUVD_JPEG_OUTBUF_CNTL                      0x401c
+#define vcnipUVD_JPEG_INT_EN                           0x400a
+#define vcnipUVD_JPEG_CNTL                             0x4000
+#define vcnipUVD_JPEG_RB_RPTR                          0x4003
+#define vcnipUVD_JPEG_OUTBUF_WPTR                      0x401d
+
 #define UVD_BASE_INST0_SEG0                            0x00007800
 #define UVD_BASE_INST0_SEG1                            0x00007E00
 #define UVD_BASE_INST0_SEG2                            0