@@ -8,19 +8,21 @@ This file was generated by the rules-ng-ng headergen tool in this git repository
8
8
git clone https://github.com/freedreno/envytools.git
9
9
10
10
The rules-ng-ng source files this header was generated from are:
11
- - /home/robclark/src/envytools/rnndb/adreno.xml ( 501 bytes, from 2018-07-03 19:37:13)
12
- - /home/robclark/src/envytools/rnndb/freedreno_copyright.xml ( 1572 bytes, from 2018-07-03 19:37:13)
13
- - /home/robclark/src/envytools/rnndb/adreno/a2xx.xml ( 42463 bytes, from 2018-11-19 13:44:03)
14
- - /home/robclark/src/envytools/rnndb/adreno/adreno_common.xml ( 14201 bytes, from 2018-12-02 17:29:54)
15
- - /home/robclark/src/envytools/rnndb/adreno/adreno_pm4.xml ( 43052 bytes, from 2018-12-02 17:29:54)
16
- - /home/robclark/src/envytools/rnndb/adreno/a3xx.xml ( 83840 bytes, from 2018-07-03 19:37:13)
17
- - /home/robclark/src/envytools/rnndb/adreno/a4xx.xml ( 112086 bytes, from 2018-07-03 19:37:13)
18
- - /home/robclark/src/envytools/rnndb/adreno/a5xx.xml ( 147240 bytes, from 2018-12-02 17:29:54)
19
- - /home/robclark/src/envytools/rnndb/adreno/a6xx.xml ( 140790 bytes, from 2018-12-02 17:29:54)
20
- - /home/robclark/src/envytools/rnndb/adreno/a6xx_gmu.xml ( 10431 bytes, from 2018-09-14 13:03:07)
21
- - /home/robclark/src/envytools/rnndb/adreno/ocmem.xml ( 1773 bytes, from 2018-07-03 19:37:13)
22
-
23
- Copyright (C) 2013-2018 by the following authors:
11
+ - /home/robclark/src/envytools/rnndb/adreno.xml ( 594 bytes, from 2020-07-23 21:58:14)
12
+ - /home/robclark/src/envytools/rnndb/freedreno_copyright.xml ( 1572 bytes, from 2020-07-23 21:58:14)
13
+ - /home/robclark/src/envytools/rnndb/adreno/a2xx.xml ( 90159 bytes, from 2020-07-23 21:58:14)
14
+ - /home/robclark/src/envytools/rnndb/adreno/adreno_common.xml ( 14386 bytes, from 2020-07-23 21:58:14)
15
+ - /home/robclark/src/envytools/rnndb/adreno/adreno_pm4.xml ( 65048 bytes, from 2020-07-23 21:58:14)
16
+ - /home/robclark/src/envytools/rnndb/adreno/a3xx.xml ( 84226 bytes, from 2020-07-23 21:58:14)
17
+ - /home/robclark/src/envytools/rnndb/adreno/a4xx.xml ( 112556 bytes, from 2020-07-23 21:58:14)
18
+ - /home/robclark/src/envytools/rnndb/adreno/a5xx.xml ( 149461 bytes, from 2020-07-23 21:58:14)
19
+ - /home/robclark/src/envytools/rnndb/adreno/a6xx.xml ( 184695 bytes, from 2020-07-23 21:58:14)
20
+ - /home/robclark/src/envytools/rnndb/adreno/a6xx_gmu.xml ( 11218 bytes, from 2020-07-23 21:58:14)
21
+ - /home/robclark/src/envytools/rnndb/adreno/ocmem.xml ( 1773 bytes, from 2020-07-23 21:58:14)
22
+ - /home/robclark/src/envytools/rnndb/adreno/adreno_control_regs.xml ( 4559 bytes, from 2020-07-23 21:58:14)
23
+ - /home/robclark/src/envytools/rnndb/adreno/adreno_pipe_regs.xml ( 2872 bytes, from 2020-07-23 21:58:14)
24
+
25
+ Copyright (C) 2013-2020 by the following authors:
24
26
- Rob Clark <[email protected] > (robclark)
25
27
- Ilia Mirkin <[email protected] > (imirkin)
26
28
@@ -48,7 +50,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
48
50
49
51
enum a3xx_tile_mode {
50
52
LINEAR = 0 ,
53
+ TILE_4X4 = 1 ,
51
54
TILE_32X32 = 2 ,
55
+ TILE_4X2 = 3 ,
52
56
};
53
57
54
58
enum a3xx_state_block_id {
@@ -123,6 +127,7 @@ enum a3xx_vtx_fmt {
123
127
VFMT_2_10_10_10_UNORM = 61 ,
124
128
VFMT_2_10_10_10_SINT = 62 ,
125
129
VFMT_2_10_10_10_SNORM = 63 ,
130
+ VFMT_NONE = 255 ,
126
131
};
127
132
128
133
enum a3xx_tex_fmt {
@@ -206,15 +211,7 @@ enum a3xx_tex_fmt {
206
211
TFMT_ETC2_RGBA8 = 116 ,
207
212
TFMT_ETC2_RGB8A1 = 117 ,
208
213
TFMT_ETC2_RGB8 = 118 ,
209
- };
210
-
211
- enum a3xx_tex_fetchsize {
212
- TFETCH_DISABLE = 0 ,
213
- TFETCH_1_BYTE = 1 ,
214
- TFETCH_2_BYTE = 2 ,
215
- TFETCH_4_BYTE = 3 ,
216
- TFETCH_8_BYTE = 4 ,
217
- TFETCH_16_BYTE = 5 ,
214
+ TFMT_NONE = 255 ,
218
215
};
219
216
220
217
enum a3xx_color_fmt {
@@ -228,8 +225,8 @@ enum a3xx_color_fmt {
228
225
RB_R8G8B8A8_SINT = 11 ,
229
226
RB_R8G8_UNORM = 12 ,
230
227
RB_R8G8_SNORM = 13 ,
231
- RB_R8_UINT = 14 ,
232
- RB_R8_SINT = 15 ,
228
+ RB_R8G8_UINT = 14 ,
229
+ RB_R8G8_SINT = 15 ,
233
230
RB_R10G10B10A2_UNORM = 16 ,
234
231
RB_A2R10G10B10_UNORM = 17 ,
235
232
RB_R10G10B10A2_UINT = 18 ,
@@ -261,6 +258,7 @@ enum a3xx_color_fmt {
261
258
RB_R32_UINT = 56 ,
262
259
RB_R32G32_UINT = 57 ,
263
260
RB_R32G32B32A32_UINT = 59 ,
261
+ RB_NONE = 255 ,
264
262
};
265
263
266
264
enum a3xx_cp_perfcounter_select {
@@ -932,6 +930,9 @@ static inline uint32_t REG_A3XX_CP_PROTECT_REG(uint32_t i0) { return 0x00000460
932
930
933
931
#define REG_A3XX_GRAS_CL_CLIP_CNTL 0x00002040
934
932
#define A3XX_GRAS_CL_CLIP_CNTL_IJ_PERSP_CENTER 0x00001000
933
+ #define A3XX_GRAS_CL_CLIP_CNTL_IJ_NON_PERSP_CENTER 0x00002000
934
+ #define A3XX_GRAS_CL_CLIP_CNTL_IJ_PERSP_CENTROID 0x00004000
935
+ #define A3XX_GRAS_CL_CLIP_CNTL_IJ_NON_PERSP_CENTROID 0x00008000
935
936
#define A3XX_GRAS_CL_CLIP_CNTL_CLIP_DISABLE 0x00010000
936
937
#define A3XX_GRAS_CL_CLIP_CNTL_ZFAR_CLIP_DISABLE 0x00020000
937
938
#define A3XX_GRAS_CL_CLIP_CNTL_VP_CLIP_CODE_IGNORE 0x00080000
@@ -1170,10 +1171,12 @@ static inline uint32_t A3XX_RB_RENDER_CONTROL_BIN_WIDTH(uint32_t val)
1170
1171
}
1171
1172
#define A3XX_RB_RENDER_CONTROL_DISABLE_COLOR_PIPE 0x00001000
1172
1173
#define A3XX_RB_RENDER_CONTROL_ENABLE_GMEM 0x00002000
1173
- #define A3XX_RB_RENDER_CONTROL_XCOORD 0x00004000
1174
- #define A3XX_RB_RENDER_CONTROL_YCOORD 0x00008000
1175
- #define A3XX_RB_RENDER_CONTROL_ZCOORD 0x00010000
1176
- #define A3XX_RB_RENDER_CONTROL_WCOORD 0x00020000
1174
+ #define A3XX_RB_RENDER_CONTROL_COORD_MASK__MASK 0x0003c000
1175
+ #define A3XX_RB_RENDER_CONTROL_COORD_MASK__SHIFT 14
1176
+ static inline uint32_t A3XX_RB_RENDER_CONTROL_COORD_MASK (uint32_t val )
1177
+ {
1178
+ return ((val ) << A3XX_RB_RENDER_CONTROL_COORD_MASK__SHIFT ) & A3XX_RB_RENDER_CONTROL_COORD_MASK__MASK ;
1179
+ }
1177
1180
#define A3XX_RB_RENDER_CONTROL_I_CLAMP_ENABLE 0x00080000
1178
1181
#define A3XX_RB_RENDER_CONTROL_COV_VALUE_OUTPUT_ENABLE 0x00100000
1179
1182
#define A3XX_RB_RENDER_CONTROL_ALPHA_TEST 0x00400000
@@ -1755,11 +1758,29 @@ static inline uint32_t A3XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD(uint32_t val)
1755
1758
}
1756
1759
1757
1760
#define REG_A3XX_HLSQ_CONTROL_3_REG 0x00002203
1758
- #define A3XX_HLSQ_CONTROL_3_REG_REGID__MASK 0x000000ff
1759
- #define A3XX_HLSQ_CONTROL_3_REG_REGID__SHIFT 0
1760
- static inline uint32_t A3XX_HLSQ_CONTROL_3_REG_REGID (uint32_t val )
1761
+ #define A3XX_HLSQ_CONTROL_3_REG_IJPERSPCENTERREGID__MASK 0x000000ff
1762
+ #define A3XX_HLSQ_CONTROL_3_REG_IJPERSPCENTERREGID__SHIFT 0
1763
+ static inline uint32_t A3XX_HLSQ_CONTROL_3_REG_IJPERSPCENTERREGID (uint32_t val )
1764
+ {
1765
+ return ((val ) << A3XX_HLSQ_CONTROL_3_REG_IJPERSPCENTERREGID__SHIFT ) & A3XX_HLSQ_CONTROL_3_REG_IJPERSPCENTERREGID__MASK ;
1766
+ }
1767
+ #define A3XX_HLSQ_CONTROL_3_REG_IJNONPERSPCENTERREGID__MASK 0x0000ff00
1768
+ #define A3XX_HLSQ_CONTROL_3_REG_IJNONPERSPCENTERREGID__SHIFT 8
1769
+ static inline uint32_t A3XX_HLSQ_CONTROL_3_REG_IJNONPERSPCENTERREGID (uint32_t val )
1770
+ {
1771
+ return ((val ) << A3XX_HLSQ_CONTROL_3_REG_IJNONPERSPCENTERREGID__SHIFT ) & A3XX_HLSQ_CONTROL_3_REG_IJNONPERSPCENTERREGID__MASK ;
1772
+ }
1773
+ #define A3XX_HLSQ_CONTROL_3_REG_IJPERSPCENTROIDREGID__MASK 0x00ff0000
1774
+ #define A3XX_HLSQ_CONTROL_3_REG_IJPERSPCENTROIDREGID__SHIFT 16
1775
+ static inline uint32_t A3XX_HLSQ_CONTROL_3_REG_IJPERSPCENTROIDREGID (uint32_t val )
1776
+ {
1777
+ return ((val ) << A3XX_HLSQ_CONTROL_3_REG_IJPERSPCENTROIDREGID__SHIFT ) & A3XX_HLSQ_CONTROL_3_REG_IJPERSPCENTROIDREGID__MASK ;
1778
+ }
1779
+ #define A3XX_HLSQ_CONTROL_3_REG_IJNONPERSPCENTROIDREGID__MASK 0xff000000
1780
+ #define A3XX_HLSQ_CONTROL_3_REG_IJNONPERSPCENTROIDREGID__SHIFT 24
1781
+ static inline uint32_t A3XX_HLSQ_CONTROL_3_REG_IJNONPERSPCENTROIDREGID (uint32_t val )
1761
1782
{
1762
- return ((val ) << A3XX_HLSQ_CONTROL_3_REG_REGID__SHIFT ) & A3XX_HLSQ_CONTROL_3_REG_REGID__MASK ;
1783
+ return ((val ) << A3XX_HLSQ_CONTROL_3_REG_IJNONPERSPCENTROIDREGID__SHIFT ) & A3XX_HLSQ_CONTROL_3_REG_IJNONPERSPCENTROIDREGID__MASK ;
1763
1784
}
1764
1785
1765
1786
#define REG_A3XX_HLSQ_VS_CONTROL_REG 0x00002204
@@ -1944,8 +1965,6 @@ static inline uint32_t A3XX_VFD_CONTROL_1_REGID4INST(uint32_t val)
1944
1965
1945
1966
#define REG_A3XX_VFD_INDEX_OFFSET 0x00002245
1946
1967
1947
- #define REG_A3XX_VFD_INDEX_OFFSET 0x00002245
1948
-
1949
1968
static inline uint32_t REG_A3XX_VFD_FETCH (uint32_t i0 ) { return 0x00002246 + 0x2 * i0 ; }
1950
1969
1951
1970
static inline uint32_t REG_A3XX_VFD_FETCH_INSTR_0 (uint32_t i0 ) { return 0x00002246 + 0x2 * i0 ; }
@@ -3107,7 +3126,12 @@ static inline uint32_t A3XX_TEX_SAMP_1_MIN_LOD(float val)
3107
3126
}
3108
3127
3109
3128
#define REG_A3XX_TEX_CONST_0 0x00000000
3110
- #define A3XX_TEX_CONST_0_TILED 0x00000001
3129
+ #define A3XX_TEX_CONST_0_TILE_MODE__MASK 0x00000003
3130
+ #define A3XX_TEX_CONST_0_TILE_MODE__SHIFT 0
3131
+ static inline uint32_t A3XX_TEX_CONST_0_TILE_MODE (enum a3xx_tile_mode val )
3132
+ {
3133
+ return ((val ) << A3XX_TEX_CONST_0_TILE_MODE__SHIFT ) & A3XX_TEX_CONST_0_TILE_MODE__MASK ;
3134
+ }
3111
3135
#define A3XX_TEX_CONST_0_SRGB 0x00000004
3112
3136
#define A3XX_TEX_CONST_0_SWIZ_X__MASK 0x00000070
3113
3137
#define A3XX_TEX_CONST_0_SWIZ_X__SHIFT 4
@@ -3172,11 +3196,11 @@ static inline uint32_t A3XX_TEX_CONST_1_WIDTH(uint32_t val)
3172
3196
{
3173
3197
return ((val ) << A3XX_TEX_CONST_1_WIDTH__SHIFT ) & A3XX_TEX_CONST_1_WIDTH__MASK ;
3174
3198
}
3175
- #define A3XX_TEX_CONST_1_FETCHSIZE__MASK 0xf0000000
3176
- #define A3XX_TEX_CONST_1_FETCHSIZE__SHIFT 28
3177
- static inline uint32_t A3XX_TEX_CONST_1_FETCHSIZE ( enum a3xx_tex_fetchsize val )
3199
+ #define A3XX_TEX_CONST_1_PITCHALIGN__MASK 0xf0000000
3200
+ #define A3XX_TEX_CONST_1_PITCHALIGN__SHIFT 28
3201
+ static inline uint32_t A3XX_TEX_CONST_1_PITCHALIGN ( uint32_t val )
3178
3202
{
3179
- return ((val ) << A3XX_TEX_CONST_1_FETCHSIZE__SHIFT ) & A3XX_TEX_CONST_1_FETCHSIZE__MASK ;
3203
+ return ((val ) << A3XX_TEX_CONST_1_PITCHALIGN__SHIFT ) & A3XX_TEX_CONST_1_PITCHALIGN__MASK ;
3180
3204
}
3181
3205
3182
3206
#define REG_A3XX_TEX_CONST_2 0x00000002
0 commit comments