18c2ecf20Sopenharmony_ci#ifndef A4XX_XML
28c2ecf20Sopenharmony_ci#define A4XX_XML
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci/* Autogenerated file, DO NOT EDIT manually!
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciThis file was generated by the rules-ng-ng headergen tool in this git repository:
78c2ecf20Sopenharmony_cihttp://github.com/freedreno/envytools/
88c2ecf20Sopenharmony_cigit clone https://github.com/freedreno/envytools.git
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciThe rules-ng-ng source files this header was generated from are:
118c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno.xml                     (    594 bytes, from 2020-07-23 21:58:14)
128c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/freedreno_copyright.xml        (   1572 bytes, from 2020-07-23 21:58:14)
138c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a2xx.xml                (  90159 bytes, from 2020-07-23 21:58:14)
148c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/adreno_common.xml       (  14386 bytes, from 2020-07-23 21:58:14)
158c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/adreno_pm4.xml          (  65048 bytes, from 2020-07-23 21:58:14)
168c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a3xx.xml                (  84226 bytes, from 2020-07-23 21:58:14)
178c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a4xx.xml                ( 112556 bytes, from 2020-07-23 21:58:14)
188c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a5xx.xml                ( 149461 bytes, from 2020-07-23 21:58:14)
198c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a6xx.xml                ( 184695 bytes, from 2020-07-23 21:58:14)
208c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a6xx_gmu.xml            (  11218 bytes, from 2020-07-23 21:58:14)
218c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/ocmem.xml               (   1773 bytes, from 2020-07-23 21:58:14)
228c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/adreno_control_regs.xml (   4559 bytes, from 2020-07-23 21:58:14)
238c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/adreno_pipe_regs.xml    (   2872 bytes, from 2020-07-23 21:58:14)
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciCopyright (C) 2013-2020 by the following authors:
268c2ecf20Sopenharmony_ci- Rob Clark <robdclark@gmail.com> (robclark)
278c2ecf20Sopenharmony_ci- Ilia Mirkin <imirkin@alum.mit.edu> (imirkin)
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciPermission is hereby granted, free of charge, to any person obtaining
308c2ecf20Sopenharmony_cia copy of this software and associated documentation files (the
318c2ecf20Sopenharmony_ci"Software"), to deal in the Software without restriction, including
328c2ecf20Sopenharmony_ciwithout limitation the rights to use, copy, modify, merge, publish,
338c2ecf20Sopenharmony_cidistribute, sublicense, and/or sell copies of the Software, and to
348c2ecf20Sopenharmony_cipermit persons to whom the Software is furnished to do so, subject to
358c2ecf20Sopenharmony_cithe following conditions:
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciThe above copyright notice and this permission notice (including the
388c2ecf20Sopenharmony_cinext paragraph) shall be included in all copies or substantial
398c2ecf20Sopenharmony_ciportions of the Software.
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ciTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
428c2ecf20Sopenharmony_ciEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
438c2ecf20Sopenharmony_ciMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
448c2ecf20Sopenharmony_ciIN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
458c2ecf20Sopenharmony_ciLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
468c2ecf20Sopenharmony_ciOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
478c2ecf20Sopenharmony_ciWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
488c2ecf20Sopenharmony_ci*/
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_cienum a4xx_color_fmt {
528c2ecf20Sopenharmony_ci	RB4_A8_UNORM = 1,
538c2ecf20Sopenharmony_ci	RB4_R8_UNORM = 2,
548c2ecf20Sopenharmony_ci	RB4_R8_SNORM = 3,
558c2ecf20Sopenharmony_ci	RB4_R8_UINT = 4,
568c2ecf20Sopenharmony_ci	RB4_R8_SINT = 5,
578c2ecf20Sopenharmony_ci	RB4_R4G4B4A4_UNORM = 8,
588c2ecf20Sopenharmony_ci	RB4_R5G5B5A1_UNORM = 10,
598c2ecf20Sopenharmony_ci	RB4_R5G6B5_UNORM = 14,
608c2ecf20Sopenharmony_ci	RB4_R8G8_UNORM = 15,
618c2ecf20Sopenharmony_ci	RB4_R8G8_SNORM = 16,
628c2ecf20Sopenharmony_ci	RB4_R8G8_UINT = 17,
638c2ecf20Sopenharmony_ci	RB4_R8G8_SINT = 18,
648c2ecf20Sopenharmony_ci	RB4_R16_UNORM = 19,
658c2ecf20Sopenharmony_ci	RB4_R16_SNORM = 20,
668c2ecf20Sopenharmony_ci	RB4_R16_FLOAT = 21,
678c2ecf20Sopenharmony_ci	RB4_R16_UINT = 22,
688c2ecf20Sopenharmony_ci	RB4_R16_SINT = 23,
698c2ecf20Sopenharmony_ci	RB4_R8G8B8_UNORM = 25,
708c2ecf20Sopenharmony_ci	RB4_R8G8B8A8_UNORM = 26,
718c2ecf20Sopenharmony_ci	RB4_R8G8B8A8_SNORM = 28,
728c2ecf20Sopenharmony_ci	RB4_R8G8B8A8_UINT = 29,
738c2ecf20Sopenharmony_ci	RB4_R8G8B8A8_SINT = 30,
748c2ecf20Sopenharmony_ci	RB4_R10G10B10A2_UNORM = 31,
758c2ecf20Sopenharmony_ci	RB4_R10G10B10A2_UINT = 34,
768c2ecf20Sopenharmony_ci	RB4_R11G11B10_FLOAT = 39,
778c2ecf20Sopenharmony_ci	RB4_R16G16_UNORM = 40,
788c2ecf20Sopenharmony_ci	RB4_R16G16_SNORM = 41,
798c2ecf20Sopenharmony_ci	RB4_R16G16_FLOAT = 42,
808c2ecf20Sopenharmony_ci	RB4_R16G16_UINT = 43,
818c2ecf20Sopenharmony_ci	RB4_R16G16_SINT = 44,
828c2ecf20Sopenharmony_ci	RB4_R32_FLOAT = 45,
838c2ecf20Sopenharmony_ci	RB4_R32_UINT = 46,
848c2ecf20Sopenharmony_ci	RB4_R32_SINT = 47,
858c2ecf20Sopenharmony_ci	RB4_R16G16B16A16_UNORM = 52,
868c2ecf20Sopenharmony_ci	RB4_R16G16B16A16_SNORM = 53,
878c2ecf20Sopenharmony_ci	RB4_R16G16B16A16_FLOAT = 54,
888c2ecf20Sopenharmony_ci	RB4_R16G16B16A16_UINT = 55,
898c2ecf20Sopenharmony_ci	RB4_R16G16B16A16_SINT = 56,
908c2ecf20Sopenharmony_ci	RB4_R32G32_FLOAT = 57,
918c2ecf20Sopenharmony_ci	RB4_R32G32_UINT = 58,
928c2ecf20Sopenharmony_ci	RB4_R32G32_SINT = 59,
938c2ecf20Sopenharmony_ci	RB4_R32G32B32A32_FLOAT = 60,
948c2ecf20Sopenharmony_ci	RB4_R32G32B32A32_UINT = 61,
958c2ecf20Sopenharmony_ci	RB4_R32G32B32A32_SINT = 62,
968c2ecf20Sopenharmony_ci	RB4_NONE = 255,
978c2ecf20Sopenharmony_ci};
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_cienum a4xx_tile_mode {
1008c2ecf20Sopenharmony_ci	TILE4_LINEAR = 0,
1018c2ecf20Sopenharmony_ci	TILE4_2 = 2,
1028c2ecf20Sopenharmony_ci	TILE4_3 = 3,
1038c2ecf20Sopenharmony_ci};
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_cienum a4xx_vtx_fmt {
1068c2ecf20Sopenharmony_ci	VFMT4_32_FLOAT = 1,
1078c2ecf20Sopenharmony_ci	VFMT4_32_32_FLOAT = 2,
1088c2ecf20Sopenharmony_ci	VFMT4_32_32_32_FLOAT = 3,
1098c2ecf20Sopenharmony_ci	VFMT4_32_32_32_32_FLOAT = 4,
1108c2ecf20Sopenharmony_ci	VFMT4_16_FLOAT = 5,
1118c2ecf20Sopenharmony_ci	VFMT4_16_16_FLOAT = 6,
1128c2ecf20Sopenharmony_ci	VFMT4_16_16_16_FLOAT = 7,
1138c2ecf20Sopenharmony_ci	VFMT4_16_16_16_16_FLOAT = 8,
1148c2ecf20Sopenharmony_ci	VFMT4_32_FIXED = 9,
1158c2ecf20Sopenharmony_ci	VFMT4_32_32_FIXED = 10,
1168c2ecf20Sopenharmony_ci	VFMT4_32_32_32_FIXED = 11,
1178c2ecf20Sopenharmony_ci	VFMT4_32_32_32_32_FIXED = 12,
1188c2ecf20Sopenharmony_ci	VFMT4_11_11_10_FLOAT = 13,
1198c2ecf20Sopenharmony_ci	VFMT4_16_SINT = 16,
1208c2ecf20Sopenharmony_ci	VFMT4_16_16_SINT = 17,
1218c2ecf20Sopenharmony_ci	VFMT4_16_16_16_SINT = 18,
1228c2ecf20Sopenharmony_ci	VFMT4_16_16_16_16_SINT = 19,
1238c2ecf20Sopenharmony_ci	VFMT4_16_UINT = 20,
1248c2ecf20Sopenharmony_ci	VFMT4_16_16_UINT = 21,
1258c2ecf20Sopenharmony_ci	VFMT4_16_16_16_UINT = 22,
1268c2ecf20Sopenharmony_ci	VFMT4_16_16_16_16_UINT = 23,
1278c2ecf20Sopenharmony_ci	VFMT4_16_SNORM = 24,
1288c2ecf20Sopenharmony_ci	VFMT4_16_16_SNORM = 25,
1298c2ecf20Sopenharmony_ci	VFMT4_16_16_16_SNORM = 26,
1308c2ecf20Sopenharmony_ci	VFMT4_16_16_16_16_SNORM = 27,
1318c2ecf20Sopenharmony_ci	VFMT4_16_UNORM = 28,
1328c2ecf20Sopenharmony_ci	VFMT4_16_16_UNORM = 29,
1338c2ecf20Sopenharmony_ci	VFMT4_16_16_16_UNORM = 30,
1348c2ecf20Sopenharmony_ci	VFMT4_16_16_16_16_UNORM = 31,
1358c2ecf20Sopenharmony_ci	VFMT4_32_UINT = 32,
1368c2ecf20Sopenharmony_ci	VFMT4_32_32_UINT = 33,
1378c2ecf20Sopenharmony_ci	VFMT4_32_32_32_UINT = 34,
1388c2ecf20Sopenharmony_ci	VFMT4_32_32_32_32_UINT = 35,
1398c2ecf20Sopenharmony_ci	VFMT4_32_SINT = 36,
1408c2ecf20Sopenharmony_ci	VFMT4_32_32_SINT = 37,
1418c2ecf20Sopenharmony_ci	VFMT4_32_32_32_SINT = 38,
1428c2ecf20Sopenharmony_ci	VFMT4_32_32_32_32_SINT = 39,
1438c2ecf20Sopenharmony_ci	VFMT4_8_UINT = 40,
1448c2ecf20Sopenharmony_ci	VFMT4_8_8_UINT = 41,
1458c2ecf20Sopenharmony_ci	VFMT4_8_8_8_UINT = 42,
1468c2ecf20Sopenharmony_ci	VFMT4_8_8_8_8_UINT = 43,
1478c2ecf20Sopenharmony_ci	VFMT4_8_UNORM = 44,
1488c2ecf20Sopenharmony_ci	VFMT4_8_8_UNORM = 45,
1498c2ecf20Sopenharmony_ci	VFMT4_8_8_8_UNORM = 46,
1508c2ecf20Sopenharmony_ci	VFMT4_8_8_8_8_UNORM = 47,
1518c2ecf20Sopenharmony_ci	VFMT4_8_SINT = 48,
1528c2ecf20Sopenharmony_ci	VFMT4_8_8_SINT = 49,
1538c2ecf20Sopenharmony_ci	VFMT4_8_8_8_SINT = 50,
1548c2ecf20Sopenharmony_ci	VFMT4_8_8_8_8_SINT = 51,
1558c2ecf20Sopenharmony_ci	VFMT4_8_SNORM = 52,
1568c2ecf20Sopenharmony_ci	VFMT4_8_8_SNORM = 53,
1578c2ecf20Sopenharmony_ci	VFMT4_8_8_8_SNORM = 54,
1588c2ecf20Sopenharmony_ci	VFMT4_8_8_8_8_SNORM = 55,
1598c2ecf20Sopenharmony_ci	VFMT4_10_10_10_2_UINT = 56,
1608c2ecf20Sopenharmony_ci	VFMT4_10_10_10_2_UNORM = 57,
1618c2ecf20Sopenharmony_ci	VFMT4_10_10_10_2_SINT = 58,
1628c2ecf20Sopenharmony_ci	VFMT4_10_10_10_2_SNORM = 59,
1638c2ecf20Sopenharmony_ci	VFMT4_2_10_10_10_UINT = 60,
1648c2ecf20Sopenharmony_ci	VFMT4_2_10_10_10_UNORM = 61,
1658c2ecf20Sopenharmony_ci	VFMT4_2_10_10_10_SINT = 62,
1668c2ecf20Sopenharmony_ci	VFMT4_2_10_10_10_SNORM = 63,
1678c2ecf20Sopenharmony_ci	VFMT4_NONE = 255,
1688c2ecf20Sopenharmony_ci};
1698c2ecf20Sopenharmony_ci
1708c2ecf20Sopenharmony_cienum a4xx_tex_fmt {
1718c2ecf20Sopenharmony_ci	TFMT4_A8_UNORM = 3,
1728c2ecf20Sopenharmony_ci	TFMT4_8_UNORM = 4,
1738c2ecf20Sopenharmony_ci	TFMT4_8_SNORM = 5,
1748c2ecf20Sopenharmony_ci	TFMT4_8_UINT = 6,
1758c2ecf20Sopenharmony_ci	TFMT4_8_SINT = 7,
1768c2ecf20Sopenharmony_ci	TFMT4_4_4_4_4_UNORM = 8,
1778c2ecf20Sopenharmony_ci	TFMT4_5_5_5_1_UNORM = 9,
1788c2ecf20Sopenharmony_ci	TFMT4_5_6_5_UNORM = 11,
1798c2ecf20Sopenharmony_ci	TFMT4_L8_A8_UNORM = 13,
1808c2ecf20Sopenharmony_ci	TFMT4_8_8_UNORM = 14,
1818c2ecf20Sopenharmony_ci	TFMT4_8_8_SNORM = 15,
1828c2ecf20Sopenharmony_ci	TFMT4_8_8_UINT = 16,
1838c2ecf20Sopenharmony_ci	TFMT4_8_8_SINT = 17,
1848c2ecf20Sopenharmony_ci	TFMT4_16_UNORM = 18,
1858c2ecf20Sopenharmony_ci	TFMT4_16_SNORM = 19,
1868c2ecf20Sopenharmony_ci	TFMT4_16_FLOAT = 20,
1878c2ecf20Sopenharmony_ci	TFMT4_16_UINT = 21,
1888c2ecf20Sopenharmony_ci	TFMT4_16_SINT = 22,
1898c2ecf20Sopenharmony_ci	TFMT4_8_8_8_8_UNORM = 28,
1908c2ecf20Sopenharmony_ci	TFMT4_8_8_8_8_SNORM = 29,
1918c2ecf20Sopenharmony_ci	TFMT4_8_8_8_8_UINT = 30,
1928c2ecf20Sopenharmony_ci	TFMT4_8_8_8_8_SINT = 31,
1938c2ecf20Sopenharmony_ci	TFMT4_9_9_9_E5_FLOAT = 32,
1948c2ecf20Sopenharmony_ci	TFMT4_10_10_10_2_UNORM = 33,
1958c2ecf20Sopenharmony_ci	TFMT4_10_10_10_2_UINT = 34,
1968c2ecf20Sopenharmony_ci	TFMT4_11_11_10_FLOAT = 37,
1978c2ecf20Sopenharmony_ci	TFMT4_16_16_UNORM = 38,
1988c2ecf20Sopenharmony_ci	TFMT4_16_16_SNORM = 39,
1998c2ecf20Sopenharmony_ci	TFMT4_16_16_FLOAT = 40,
2008c2ecf20Sopenharmony_ci	TFMT4_16_16_UINT = 41,
2018c2ecf20Sopenharmony_ci	TFMT4_16_16_SINT = 42,
2028c2ecf20Sopenharmony_ci	TFMT4_32_FLOAT = 43,
2038c2ecf20Sopenharmony_ci	TFMT4_32_UINT = 44,
2048c2ecf20Sopenharmony_ci	TFMT4_32_SINT = 45,
2058c2ecf20Sopenharmony_ci	TFMT4_16_16_16_16_UNORM = 51,
2068c2ecf20Sopenharmony_ci	TFMT4_16_16_16_16_SNORM = 52,
2078c2ecf20Sopenharmony_ci	TFMT4_16_16_16_16_FLOAT = 53,
2088c2ecf20Sopenharmony_ci	TFMT4_16_16_16_16_UINT = 54,
2098c2ecf20Sopenharmony_ci	TFMT4_16_16_16_16_SINT = 55,
2108c2ecf20Sopenharmony_ci	TFMT4_32_32_FLOAT = 56,
2118c2ecf20Sopenharmony_ci	TFMT4_32_32_UINT = 57,
2128c2ecf20Sopenharmony_ci	TFMT4_32_32_SINT = 58,
2138c2ecf20Sopenharmony_ci	TFMT4_32_32_32_FLOAT = 59,
2148c2ecf20Sopenharmony_ci	TFMT4_32_32_32_UINT = 60,
2158c2ecf20Sopenharmony_ci	TFMT4_32_32_32_SINT = 61,
2168c2ecf20Sopenharmony_ci	TFMT4_32_32_32_32_FLOAT = 63,
2178c2ecf20Sopenharmony_ci	TFMT4_32_32_32_32_UINT = 64,
2188c2ecf20Sopenharmony_ci	TFMT4_32_32_32_32_SINT = 65,
2198c2ecf20Sopenharmony_ci	TFMT4_X8Z24_UNORM = 71,
2208c2ecf20Sopenharmony_ci	TFMT4_DXT1 = 86,
2218c2ecf20Sopenharmony_ci	TFMT4_DXT3 = 87,
2228c2ecf20Sopenharmony_ci	TFMT4_DXT5 = 88,
2238c2ecf20Sopenharmony_ci	TFMT4_RGTC1_UNORM = 90,
2248c2ecf20Sopenharmony_ci	TFMT4_RGTC1_SNORM = 91,
2258c2ecf20Sopenharmony_ci	TFMT4_RGTC2_UNORM = 94,
2268c2ecf20Sopenharmony_ci	TFMT4_RGTC2_SNORM = 95,
2278c2ecf20Sopenharmony_ci	TFMT4_BPTC_UFLOAT = 97,
2288c2ecf20Sopenharmony_ci	TFMT4_BPTC_FLOAT = 98,
2298c2ecf20Sopenharmony_ci	TFMT4_BPTC = 99,
2308c2ecf20Sopenharmony_ci	TFMT4_ATC_RGB = 100,
2318c2ecf20Sopenharmony_ci	TFMT4_ATC_RGBA_EXPLICIT = 101,
2328c2ecf20Sopenharmony_ci	TFMT4_ATC_RGBA_INTERPOLATED = 102,
2338c2ecf20Sopenharmony_ci	TFMT4_ETC2_RG11_UNORM = 103,
2348c2ecf20Sopenharmony_ci	TFMT4_ETC2_RG11_SNORM = 104,
2358c2ecf20Sopenharmony_ci	TFMT4_ETC2_R11_UNORM = 105,
2368c2ecf20Sopenharmony_ci	TFMT4_ETC2_R11_SNORM = 106,
2378c2ecf20Sopenharmony_ci	TFMT4_ETC1 = 107,
2388c2ecf20Sopenharmony_ci	TFMT4_ETC2_RGB8 = 108,
2398c2ecf20Sopenharmony_ci	TFMT4_ETC2_RGBA8 = 109,
2408c2ecf20Sopenharmony_ci	TFMT4_ETC2_RGB8A1 = 110,
2418c2ecf20Sopenharmony_ci	TFMT4_ASTC_4x4 = 111,
2428c2ecf20Sopenharmony_ci	TFMT4_ASTC_5x4 = 112,
2438c2ecf20Sopenharmony_ci	TFMT4_ASTC_5x5 = 113,
2448c2ecf20Sopenharmony_ci	TFMT4_ASTC_6x5 = 114,
2458c2ecf20Sopenharmony_ci	TFMT4_ASTC_6x6 = 115,
2468c2ecf20Sopenharmony_ci	TFMT4_ASTC_8x5 = 116,
2478c2ecf20Sopenharmony_ci	TFMT4_ASTC_8x6 = 117,
2488c2ecf20Sopenharmony_ci	TFMT4_ASTC_8x8 = 118,
2498c2ecf20Sopenharmony_ci	TFMT4_ASTC_10x5 = 119,
2508c2ecf20Sopenharmony_ci	TFMT4_ASTC_10x6 = 120,
2518c2ecf20Sopenharmony_ci	TFMT4_ASTC_10x8 = 121,
2528c2ecf20Sopenharmony_ci	TFMT4_ASTC_10x10 = 122,
2538c2ecf20Sopenharmony_ci	TFMT4_ASTC_12x10 = 123,
2548c2ecf20Sopenharmony_ci	TFMT4_ASTC_12x12 = 124,
2558c2ecf20Sopenharmony_ci	TFMT4_NONE = 255,
2568c2ecf20Sopenharmony_ci};
2578c2ecf20Sopenharmony_ci
2588c2ecf20Sopenharmony_cienum a4xx_depth_format {
2598c2ecf20Sopenharmony_ci	DEPTH4_NONE = 0,
2608c2ecf20Sopenharmony_ci	DEPTH4_16 = 1,
2618c2ecf20Sopenharmony_ci	DEPTH4_24_8 = 2,
2628c2ecf20Sopenharmony_ci	DEPTH4_32 = 3,
2638c2ecf20Sopenharmony_ci};
2648c2ecf20Sopenharmony_ci
2658c2ecf20Sopenharmony_cienum a4xx_ccu_perfcounter_select {
2668c2ecf20Sopenharmony_ci	CCU_BUSY_CYCLES = 0,
2678c2ecf20Sopenharmony_ci	CCU_RB_DEPTH_RETURN_STALL = 2,
2688c2ecf20Sopenharmony_ci	CCU_RB_COLOR_RETURN_STALL = 3,
2698c2ecf20Sopenharmony_ci	CCU_DEPTH_BLOCKS = 6,
2708c2ecf20Sopenharmony_ci	CCU_COLOR_BLOCKS = 7,
2718c2ecf20Sopenharmony_ci	CCU_DEPTH_BLOCK_HIT = 8,
2728c2ecf20Sopenharmony_ci	CCU_COLOR_BLOCK_HIT = 9,
2738c2ecf20Sopenharmony_ci	CCU_DEPTH_FLAG1_COUNT = 10,
2748c2ecf20Sopenharmony_ci	CCU_DEPTH_FLAG2_COUNT = 11,
2758c2ecf20Sopenharmony_ci	CCU_DEPTH_FLAG3_COUNT = 12,
2768c2ecf20Sopenharmony_ci	CCU_DEPTH_FLAG4_COUNT = 13,
2778c2ecf20Sopenharmony_ci	CCU_COLOR_FLAG1_COUNT = 14,
2788c2ecf20Sopenharmony_ci	CCU_COLOR_FLAG2_COUNT = 15,
2798c2ecf20Sopenharmony_ci	CCU_COLOR_FLAG3_COUNT = 16,
2808c2ecf20Sopenharmony_ci	CCU_COLOR_FLAG4_COUNT = 17,
2818c2ecf20Sopenharmony_ci	CCU_PARTIAL_BLOCK_READ = 18,
2828c2ecf20Sopenharmony_ci};
2838c2ecf20Sopenharmony_ci
2848c2ecf20Sopenharmony_cienum a4xx_cp_perfcounter_select {
2858c2ecf20Sopenharmony_ci	CP_ALWAYS_COUNT = 0,
2868c2ecf20Sopenharmony_ci	CP_BUSY = 1,
2878c2ecf20Sopenharmony_ci	CP_PFP_IDLE = 2,
2888c2ecf20Sopenharmony_ci	CP_PFP_BUSY_WORKING = 3,
2898c2ecf20Sopenharmony_ci	CP_PFP_STALL_CYCLES_ANY = 4,
2908c2ecf20Sopenharmony_ci	CP_PFP_STARVE_CYCLES_ANY = 5,
2918c2ecf20Sopenharmony_ci	CP_PFP_STARVED_PER_LOAD_ADDR = 6,
2928c2ecf20Sopenharmony_ci	CP_PFP_STALLED_PER_STORE_ADDR = 7,
2938c2ecf20Sopenharmony_ci	CP_PFP_PC_PROFILE = 8,
2948c2ecf20Sopenharmony_ci	CP_PFP_MATCH_PM4_PKT_PROFILE = 9,
2958c2ecf20Sopenharmony_ci	CP_PFP_COND_INDIRECT_DISCARDED = 10,
2968c2ecf20Sopenharmony_ci	CP_LONG_RESUMPTIONS = 11,
2978c2ecf20Sopenharmony_ci	CP_RESUME_CYCLES = 12,
2988c2ecf20Sopenharmony_ci	CP_RESUME_TO_BOUNDARY_CYCLES = 13,
2998c2ecf20Sopenharmony_ci	CP_LONG_PREEMPTIONS = 14,
3008c2ecf20Sopenharmony_ci	CP_PREEMPT_CYCLES = 15,
3018c2ecf20Sopenharmony_ci	CP_PREEMPT_TO_BOUNDARY_CYCLES = 16,
3028c2ecf20Sopenharmony_ci	CP_ME_FIFO_EMPTY_PFP_IDLE = 17,
3038c2ecf20Sopenharmony_ci	CP_ME_FIFO_EMPTY_PFP_BUSY = 18,
3048c2ecf20Sopenharmony_ci	CP_ME_FIFO_NOT_EMPTY_NOT_FULL = 19,
3058c2ecf20Sopenharmony_ci	CP_ME_FIFO_FULL_ME_BUSY = 20,
3068c2ecf20Sopenharmony_ci	CP_ME_FIFO_FULL_ME_NON_WORKING = 21,
3078c2ecf20Sopenharmony_ci	CP_ME_WAITING_FOR_PACKETS = 22,
3088c2ecf20Sopenharmony_ci	CP_ME_BUSY_WORKING = 23,
3098c2ecf20Sopenharmony_ci	CP_ME_STARVE_CYCLES_ANY = 24,
3108c2ecf20Sopenharmony_ci	CP_ME_STARVE_CYCLES_PER_PROFILE = 25,
3118c2ecf20Sopenharmony_ci	CP_ME_STALL_CYCLES_PER_PROFILE = 26,
3128c2ecf20Sopenharmony_ci	CP_ME_PC_PROFILE = 27,
3138c2ecf20Sopenharmony_ci	CP_RCIU_FIFO_EMPTY = 28,
3148c2ecf20Sopenharmony_ci	CP_RCIU_FIFO_NOT_EMPTY_NOT_FULL = 29,
3158c2ecf20Sopenharmony_ci	CP_RCIU_FIFO_FULL = 30,
3168c2ecf20Sopenharmony_ci	CP_RCIU_FIFO_FULL_NO_CONTEXT = 31,
3178c2ecf20Sopenharmony_ci	CP_RCIU_FIFO_FULL_AHB_MASTER = 32,
3188c2ecf20Sopenharmony_ci	CP_RCIU_FIFO_FULL_OTHER = 33,
3198c2ecf20Sopenharmony_ci	CP_AHB_IDLE = 34,
3208c2ecf20Sopenharmony_ci	CP_AHB_STALL_ON_GRANT_NO_SPLIT = 35,
3218c2ecf20Sopenharmony_ci	CP_AHB_STALL_ON_GRANT_SPLIT = 36,
3228c2ecf20Sopenharmony_ci	CP_AHB_STALL_ON_GRANT_SPLIT_PROFILE = 37,
3238c2ecf20Sopenharmony_ci	CP_AHB_BUSY_WORKING = 38,
3248c2ecf20Sopenharmony_ci	CP_AHB_BUSY_STALL_ON_HRDY = 39,
3258c2ecf20Sopenharmony_ci	CP_AHB_BUSY_STALL_ON_HRDY_PROFILE = 40,
3268c2ecf20Sopenharmony_ci};
3278c2ecf20Sopenharmony_ci
3288c2ecf20Sopenharmony_cienum a4xx_gras_ras_perfcounter_select {
3298c2ecf20Sopenharmony_ci	RAS_SUPER_TILES = 0,
3308c2ecf20Sopenharmony_ci	RAS_8X8_TILES = 1,
3318c2ecf20Sopenharmony_ci	RAS_4X4_TILES = 2,
3328c2ecf20Sopenharmony_ci	RAS_BUSY_CYCLES = 3,
3338c2ecf20Sopenharmony_ci	RAS_STALL_CYCLES_BY_RB = 4,
3348c2ecf20Sopenharmony_ci	RAS_STALL_CYCLES_BY_VSC = 5,
3358c2ecf20Sopenharmony_ci	RAS_STARVE_CYCLES_BY_TSE = 6,
3368c2ecf20Sopenharmony_ci	RAS_SUPERTILE_CYCLES = 7,
3378c2ecf20Sopenharmony_ci	RAS_TILE_CYCLES = 8,
3388c2ecf20Sopenharmony_ci	RAS_FULLY_COVERED_SUPER_TILES = 9,
3398c2ecf20Sopenharmony_ci	RAS_FULLY_COVERED_8X8_TILES = 10,
3408c2ecf20Sopenharmony_ci	RAS_4X4_PRIM = 11,
3418c2ecf20Sopenharmony_ci	RAS_8X4_4X8_PRIM = 12,
3428c2ecf20Sopenharmony_ci	RAS_8X8_PRIM = 13,
3438c2ecf20Sopenharmony_ci};
3448c2ecf20Sopenharmony_ci
3458c2ecf20Sopenharmony_cienum a4xx_gras_tse_perfcounter_select {
3468c2ecf20Sopenharmony_ci	TSE_INPUT_PRIM = 0,
3478c2ecf20Sopenharmony_ci	TSE_INPUT_NULL_PRIM = 1,
3488c2ecf20Sopenharmony_ci	TSE_TRIVAL_REJ_PRIM = 2,
3498c2ecf20Sopenharmony_ci	TSE_CLIPPED_PRIM = 3,
3508c2ecf20Sopenharmony_ci	TSE_NEW_PRIM = 4,
3518c2ecf20Sopenharmony_ci	TSE_ZERO_AREA_PRIM = 5,
3528c2ecf20Sopenharmony_ci	TSE_FACENESS_CULLED_PRIM = 6,
3538c2ecf20Sopenharmony_ci	TSE_ZERO_PIXEL_PRIM = 7,
3548c2ecf20Sopenharmony_ci	TSE_OUTPUT_NULL_PRIM = 8,
3558c2ecf20Sopenharmony_ci	TSE_OUTPUT_VISIBLE_PRIM = 9,
3568c2ecf20Sopenharmony_ci	TSE_PRE_CLIP_PRIM = 10,
3578c2ecf20Sopenharmony_ci	TSE_POST_CLIP_PRIM = 11,
3588c2ecf20Sopenharmony_ci	TSE_BUSY_CYCLES = 12,
3598c2ecf20Sopenharmony_ci	TSE_PC_STARVE = 13,
3608c2ecf20Sopenharmony_ci	TSE_RAS_STALL = 14,
3618c2ecf20Sopenharmony_ci	TSE_STALL_BARYPLANE_FIFO_FULL = 15,
3628c2ecf20Sopenharmony_ci	TSE_STALL_ZPLANE_FIFO_FULL = 16,
3638c2ecf20Sopenharmony_ci};
3648c2ecf20Sopenharmony_ci
3658c2ecf20Sopenharmony_cienum a4xx_hlsq_perfcounter_select {
3668c2ecf20Sopenharmony_ci	HLSQ_SP_VS_STAGE_CONSTANT = 0,
3678c2ecf20Sopenharmony_ci	HLSQ_SP_VS_STAGE_INSTRUCTIONS = 1,
3688c2ecf20Sopenharmony_ci	HLSQ_SP_FS_STAGE_CONSTANT = 2,
3698c2ecf20Sopenharmony_ci	HLSQ_SP_FS_STAGE_INSTRUCTIONS = 3,
3708c2ecf20Sopenharmony_ci	HLSQ_TP_STATE = 4,
3718c2ecf20Sopenharmony_ci	HLSQ_QUADS = 5,
3728c2ecf20Sopenharmony_ci	HLSQ_PIXELS = 6,
3738c2ecf20Sopenharmony_ci	HLSQ_VERTICES = 7,
3748c2ecf20Sopenharmony_ci	HLSQ_SP_VS_STAGE_DATA_BYTES = 13,
3758c2ecf20Sopenharmony_ci	HLSQ_SP_FS_STAGE_DATA_BYTES = 14,
3768c2ecf20Sopenharmony_ci	HLSQ_BUSY_CYCLES = 15,
3778c2ecf20Sopenharmony_ci	HLSQ_STALL_CYCLES_SP_STATE = 16,
3788c2ecf20Sopenharmony_ci	HLSQ_STALL_CYCLES_SP_VS_STAGE = 17,
3798c2ecf20Sopenharmony_ci	HLSQ_STALL_CYCLES_SP_FS_STAGE = 18,
3808c2ecf20Sopenharmony_ci	HLSQ_STALL_CYCLES_UCHE = 19,
3818c2ecf20Sopenharmony_ci	HLSQ_RBBM_LOAD_CYCLES = 20,
3828c2ecf20Sopenharmony_ci	HLSQ_DI_TO_VS_START_SP = 21,
3838c2ecf20Sopenharmony_ci	HLSQ_DI_TO_FS_START_SP = 22,
3848c2ecf20Sopenharmony_ci	HLSQ_VS_STAGE_START_TO_DONE_SP = 23,
3858c2ecf20Sopenharmony_ci	HLSQ_FS_STAGE_START_TO_DONE_SP = 24,
3868c2ecf20Sopenharmony_ci	HLSQ_SP_STATE_COPY_CYCLES_VS_STAGE = 25,
3878c2ecf20Sopenharmony_ci	HLSQ_SP_STATE_COPY_CYCLES_FS_STAGE = 26,
3888c2ecf20Sopenharmony_ci	HLSQ_UCHE_LATENCY_CYCLES = 27,
3898c2ecf20Sopenharmony_ci	HLSQ_UCHE_LATENCY_COUNT = 28,
3908c2ecf20Sopenharmony_ci	HLSQ_STARVE_CYCLES_VFD = 29,
3918c2ecf20Sopenharmony_ci};
3928c2ecf20Sopenharmony_ci
3938c2ecf20Sopenharmony_cienum a4xx_pc_perfcounter_select {
3948c2ecf20Sopenharmony_ci	PC_VIS_STREAMS_LOADED = 0,
3958c2ecf20Sopenharmony_ci	PC_VPC_PRIMITIVES = 2,
3968c2ecf20Sopenharmony_ci	PC_DEAD_PRIM = 3,
3978c2ecf20Sopenharmony_ci	PC_LIVE_PRIM = 4,
3988c2ecf20Sopenharmony_ci	PC_DEAD_DRAWCALLS = 5,
3998c2ecf20Sopenharmony_ci	PC_LIVE_DRAWCALLS = 6,
4008c2ecf20Sopenharmony_ci	PC_VERTEX_MISSES = 7,
4018c2ecf20Sopenharmony_ci	PC_STALL_CYCLES_VFD = 9,
4028c2ecf20Sopenharmony_ci	PC_STALL_CYCLES_TSE = 10,
4038c2ecf20Sopenharmony_ci	PC_STALL_CYCLES_UCHE = 11,
4048c2ecf20Sopenharmony_ci	PC_WORKING_CYCLES = 12,
4058c2ecf20Sopenharmony_ci	PC_IA_VERTICES = 13,
4068c2ecf20Sopenharmony_ci	PC_GS_PRIMITIVES = 14,
4078c2ecf20Sopenharmony_ci	PC_HS_INVOCATIONS = 15,
4088c2ecf20Sopenharmony_ci	PC_DS_INVOCATIONS = 16,
4098c2ecf20Sopenharmony_ci	PC_DS_PRIMITIVES = 17,
4108c2ecf20Sopenharmony_ci	PC_STARVE_CYCLES_FOR_INDEX = 20,
4118c2ecf20Sopenharmony_ci	PC_STARVE_CYCLES_FOR_TESS_FACTOR = 21,
4128c2ecf20Sopenharmony_ci	PC_STARVE_CYCLES_FOR_VIZ_STREAM = 22,
4138c2ecf20Sopenharmony_ci	PC_STALL_CYCLES_TESS = 23,
4148c2ecf20Sopenharmony_ci	PC_STARVE_CYCLES_FOR_POSITION = 24,
4158c2ecf20Sopenharmony_ci	PC_MODE0_DRAWCALL = 25,
4168c2ecf20Sopenharmony_ci	PC_MODE1_DRAWCALL = 26,
4178c2ecf20Sopenharmony_ci	PC_MODE2_DRAWCALL = 27,
4188c2ecf20Sopenharmony_ci	PC_MODE3_DRAWCALL = 28,
4198c2ecf20Sopenharmony_ci	PC_MODE4_DRAWCALL = 29,
4208c2ecf20Sopenharmony_ci	PC_PREDICATED_DEAD_DRAWCALL = 30,
4218c2ecf20Sopenharmony_ci	PC_STALL_CYCLES_BY_TSE_ONLY = 31,
4228c2ecf20Sopenharmony_ci	PC_STALL_CYCLES_BY_VPC_ONLY = 32,
4238c2ecf20Sopenharmony_ci	PC_VPC_POS_DATA_TRANSACTION = 33,
4248c2ecf20Sopenharmony_ci	PC_BUSY_CYCLES = 34,
4258c2ecf20Sopenharmony_ci	PC_STARVE_CYCLES_DI = 35,
4268c2ecf20Sopenharmony_ci	PC_STALL_CYCLES_VPC = 36,
4278c2ecf20Sopenharmony_ci	TESS_WORKING_CYCLES = 37,
4288c2ecf20Sopenharmony_ci	TESS_NUM_CYCLES_SETUP_WORKING = 38,
4298c2ecf20Sopenharmony_ci	TESS_NUM_CYCLES_PTGEN_WORKING = 39,
4308c2ecf20Sopenharmony_ci	TESS_NUM_CYCLES_CONNGEN_WORKING = 40,
4318c2ecf20Sopenharmony_ci	TESS_BUSY_CYCLES = 41,
4328c2ecf20Sopenharmony_ci	TESS_STARVE_CYCLES_PC = 42,
4338c2ecf20Sopenharmony_ci	TESS_STALL_CYCLES_PC = 43,
4348c2ecf20Sopenharmony_ci};
4358c2ecf20Sopenharmony_ci
4368c2ecf20Sopenharmony_cienum a4xx_pwr_perfcounter_select {
4378c2ecf20Sopenharmony_ci	PWR_CORE_CLOCK_CYCLES = 0,
4388c2ecf20Sopenharmony_ci	PWR_BUSY_CLOCK_CYCLES = 1,
4398c2ecf20Sopenharmony_ci};
4408c2ecf20Sopenharmony_ci
4418c2ecf20Sopenharmony_cienum a4xx_rb_perfcounter_select {
4428c2ecf20Sopenharmony_ci	RB_BUSY_CYCLES = 0,
4438c2ecf20Sopenharmony_ci	RB_BUSY_CYCLES_BINNING = 1,
4448c2ecf20Sopenharmony_ci	RB_BUSY_CYCLES_RENDERING = 2,
4458c2ecf20Sopenharmony_ci	RB_BUSY_CYCLES_RESOLVE = 3,
4468c2ecf20Sopenharmony_ci	RB_STARVE_CYCLES_BY_SP = 4,
4478c2ecf20Sopenharmony_ci	RB_STARVE_CYCLES_BY_RAS = 5,
4488c2ecf20Sopenharmony_ci	RB_STARVE_CYCLES_BY_MARB = 6,
4498c2ecf20Sopenharmony_ci	RB_STALL_CYCLES_BY_MARB = 7,
4508c2ecf20Sopenharmony_ci	RB_STALL_CYCLES_BY_HLSQ = 8,
4518c2ecf20Sopenharmony_ci	RB_RB_RB_MARB_DATA = 9,
4528c2ecf20Sopenharmony_ci	RB_SP_RB_QUAD = 10,
4538c2ecf20Sopenharmony_ci	RB_RAS_RB_Z_QUADS = 11,
4548c2ecf20Sopenharmony_ci	RB_GMEM_CH0_READ = 12,
4558c2ecf20Sopenharmony_ci	RB_GMEM_CH1_READ = 13,
4568c2ecf20Sopenharmony_ci	RB_GMEM_CH0_WRITE = 14,
4578c2ecf20Sopenharmony_ci	RB_GMEM_CH1_WRITE = 15,
4588c2ecf20Sopenharmony_ci	RB_CP_CONTEXT_DONE = 16,
4598c2ecf20Sopenharmony_ci	RB_CP_CACHE_FLUSH = 17,
4608c2ecf20Sopenharmony_ci	RB_CP_ZPASS_DONE = 18,
4618c2ecf20Sopenharmony_ci	RB_STALL_FIFO0_FULL = 19,
4628c2ecf20Sopenharmony_ci	RB_STALL_FIFO1_FULL = 20,
4638c2ecf20Sopenharmony_ci	RB_STALL_FIFO2_FULL = 21,
4648c2ecf20Sopenharmony_ci	RB_STALL_FIFO3_FULL = 22,
4658c2ecf20Sopenharmony_ci	RB_RB_HLSQ_TRANSACTIONS = 23,
4668c2ecf20Sopenharmony_ci	RB_Z_READ = 24,
4678c2ecf20Sopenharmony_ci	RB_Z_WRITE = 25,
4688c2ecf20Sopenharmony_ci	RB_C_READ = 26,
4698c2ecf20Sopenharmony_ci	RB_C_WRITE = 27,
4708c2ecf20Sopenharmony_ci	RB_C_READ_LATENCY = 28,
4718c2ecf20Sopenharmony_ci	RB_Z_READ_LATENCY = 29,
4728c2ecf20Sopenharmony_ci	RB_STALL_BY_UCHE = 30,
4738c2ecf20Sopenharmony_ci	RB_MARB_UCHE_TRANSACTIONS = 31,
4748c2ecf20Sopenharmony_ci	RB_CACHE_STALL_MISS = 32,
4758c2ecf20Sopenharmony_ci	RB_CACHE_STALL_FIFO_FULL = 33,
4768c2ecf20Sopenharmony_ci	RB_8BIT_BLENDER_UNITS_ACTIVE = 34,
4778c2ecf20Sopenharmony_ci	RB_16BIT_BLENDER_UNITS_ACTIVE = 35,
4788c2ecf20Sopenharmony_ci	RB_SAMPLER_UNITS_ACTIVE = 36,
4798c2ecf20Sopenharmony_ci	RB_TOTAL_PASS = 38,
4808c2ecf20Sopenharmony_ci	RB_Z_PASS = 39,
4818c2ecf20Sopenharmony_ci	RB_Z_FAIL = 40,
4828c2ecf20Sopenharmony_ci	RB_S_FAIL = 41,
4838c2ecf20Sopenharmony_ci	RB_POWER0 = 42,
4848c2ecf20Sopenharmony_ci	RB_POWER1 = 43,
4858c2ecf20Sopenharmony_ci	RB_POWER2 = 44,
4868c2ecf20Sopenharmony_ci	RB_POWER3 = 45,
4878c2ecf20Sopenharmony_ci	RB_POWER4 = 46,
4888c2ecf20Sopenharmony_ci	RB_POWER5 = 47,
4898c2ecf20Sopenharmony_ci	RB_POWER6 = 48,
4908c2ecf20Sopenharmony_ci	RB_POWER7 = 49,
4918c2ecf20Sopenharmony_ci};
4928c2ecf20Sopenharmony_ci
4938c2ecf20Sopenharmony_cienum a4xx_rbbm_perfcounter_select {
4948c2ecf20Sopenharmony_ci	RBBM_ALWAYS_ON = 0,
4958c2ecf20Sopenharmony_ci	RBBM_VBIF_BUSY = 1,
4968c2ecf20Sopenharmony_ci	RBBM_TSE_BUSY = 2,
4978c2ecf20Sopenharmony_ci	RBBM_RAS_BUSY = 3,
4988c2ecf20Sopenharmony_ci	RBBM_PC_DCALL_BUSY = 4,
4998c2ecf20Sopenharmony_ci	RBBM_PC_VSD_BUSY = 5,
5008c2ecf20Sopenharmony_ci	RBBM_VFD_BUSY = 6,
5018c2ecf20Sopenharmony_ci	RBBM_VPC_BUSY = 7,
5028c2ecf20Sopenharmony_ci	RBBM_UCHE_BUSY = 8,
5038c2ecf20Sopenharmony_ci	RBBM_VSC_BUSY = 9,
5048c2ecf20Sopenharmony_ci	RBBM_HLSQ_BUSY = 10,
5058c2ecf20Sopenharmony_ci	RBBM_ANY_RB_BUSY = 11,
5068c2ecf20Sopenharmony_ci	RBBM_ANY_TPL1_BUSY = 12,
5078c2ecf20Sopenharmony_ci	RBBM_ANY_SP_BUSY = 13,
5088c2ecf20Sopenharmony_ci	RBBM_ANY_MARB_BUSY = 14,
5098c2ecf20Sopenharmony_ci	RBBM_ANY_ARB_BUSY = 15,
5108c2ecf20Sopenharmony_ci	RBBM_AHB_STATUS_BUSY = 16,
5118c2ecf20Sopenharmony_ci	RBBM_AHB_STATUS_STALLED = 17,
5128c2ecf20Sopenharmony_ci	RBBM_AHB_STATUS_TXFR = 18,
5138c2ecf20Sopenharmony_ci	RBBM_AHB_STATUS_TXFR_SPLIT = 19,
5148c2ecf20Sopenharmony_ci	RBBM_AHB_STATUS_TXFR_ERROR = 20,
5158c2ecf20Sopenharmony_ci	RBBM_AHB_STATUS_LONG_STALL = 21,
5168c2ecf20Sopenharmony_ci	RBBM_STATUS_MASKED = 22,
5178c2ecf20Sopenharmony_ci	RBBM_CP_BUSY_GFX_CORE_IDLE = 23,
5188c2ecf20Sopenharmony_ci	RBBM_TESS_BUSY = 24,
5198c2ecf20Sopenharmony_ci	RBBM_COM_BUSY = 25,
5208c2ecf20Sopenharmony_ci	RBBM_DCOM_BUSY = 32,
5218c2ecf20Sopenharmony_ci	RBBM_ANY_CCU_BUSY = 33,
5228c2ecf20Sopenharmony_ci	RBBM_DPM_BUSY = 34,
5238c2ecf20Sopenharmony_ci};
5248c2ecf20Sopenharmony_ci
5258c2ecf20Sopenharmony_cienum a4xx_sp_perfcounter_select {
5268c2ecf20Sopenharmony_ci	SP_LM_LOAD_INSTRUCTIONS = 0,
5278c2ecf20Sopenharmony_ci	SP_LM_STORE_INSTRUCTIONS = 1,
5288c2ecf20Sopenharmony_ci	SP_LM_ATOMICS = 2,
5298c2ecf20Sopenharmony_ci	SP_GM_LOAD_INSTRUCTIONS = 3,
5308c2ecf20Sopenharmony_ci	SP_GM_STORE_INSTRUCTIONS = 4,
5318c2ecf20Sopenharmony_ci	SP_GM_ATOMICS = 5,
5328c2ecf20Sopenharmony_ci	SP_VS_STAGE_TEX_INSTRUCTIONS = 6,
5338c2ecf20Sopenharmony_ci	SP_VS_STAGE_CFLOW_INSTRUCTIONS = 7,
5348c2ecf20Sopenharmony_ci	SP_VS_STAGE_EFU_INSTRUCTIONS = 8,
5358c2ecf20Sopenharmony_ci	SP_VS_STAGE_FULL_ALU_INSTRUCTIONS = 9,
5368c2ecf20Sopenharmony_ci	SP_VS_STAGE_HALF_ALU_INSTRUCTIONS = 10,
5378c2ecf20Sopenharmony_ci	SP_FS_STAGE_TEX_INSTRUCTIONS = 11,
5388c2ecf20Sopenharmony_ci	SP_FS_STAGE_CFLOW_INSTRUCTIONS = 12,
5398c2ecf20Sopenharmony_ci	SP_FS_STAGE_EFU_INSTRUCTIONS = 13,
5408c2ecf20Sopenharmony_ci	SP_FS_STAGE_FULL_ALU_INSTRUCTIONS = 14,
5418c2ecf20Sopenharmony_ci	SP_FS_STAGE_HALF_ALU_INSTRUCTIONS = 15,
5428c2ecf20Sopenharmony_ci	SP_VS_INSTRUCTIONS = 17,
5438c2ecf20Sopenharmony_ci	SP_FS_INSTRUCTIONS = 18,
5448c2ecf20Sopenharmony_ci	SP_ADDR_LOCK_COUNT = 19,
5458c2ecf20Sopenharmony_ci	SP_UCHE_READ_TRANS = 20,
5468c2ecf20Sopenharmony_ci	SP_UCHE_WRITE_TRANS = 21,
5478c2ecf20Sopenharmony_ci	SP_EXPORT_VPC_TRANS = 22,
5488c2ecf20Sopenharmony_ci	SP_EXPORT_RB_TRANS = 23,
5498c2ecf20Sopenharmony_ci	SP_PIXELS_KILLED = 24,
5508c2ecf20Sopenharmony_ci	SP_ICL1_REQUESTS = 25,
5518c2ecf20Sopenharmony_ci	SP_ICL1_MISSES = 26,
5528c2ecf20Sopenharmony_ci	SP_ICL0_REQUESTS = 27,
5538c2ecf20Sopenharmony_ci	SP_ICL0_MISSES = 28,
5548c2ecf20Sopenharmony_ci	SP_ALU_WORKING_CYCLES = 29,
5558c2ecf20Sopenharmony_ci	SP_EFU_WORKING_CYCLES = 30,
5568c2ecf20Sopenharmony_ci	SP_STALL_CYCLES_BY_VPC = 31,
5578c2ecf20Sopenharmony_ci	SP_STALL_CYCLES_BY_TP = 32,
5588c2ecf20Sopenharmony_ci	SP_STALL_CYCLES_BY_UCHE = 33,
5598c2ecf20Sopenharmony_ci	SP_STALL_CYCLES_BY_RB = 34,
5608c2ecf20Sopenharmony_ci	SP_BUSY_CYCLES = 35,
5618c2ecf20Sopenharmony_ci	SP_HS_INSTRUCTIONS = 36,
5628c2ecf20Sopenharmony_ci	SP_DS_INSTRUCTIONS = 37,
5638c2ecf20Sopenharmony_ci	SP_GS_INSTRUCTIONS = 38,
5648c2ecf20Sopenharmony_ci	SP_CS_INSTRUCTIONS = 39,
5658c2ecf20Sopenharmony_ci	SP_SCHEDULER_NON_WORKING = 40,
5668c2ecf20Sopenharmony_ci	SP_WAVE_CONTEXTS = 41,
5678c2ecf20Sopenharmony_ci	SP_WAVE_CONTEXT_CYCLES = 42,
5688c2ecf20Sopenharmony_ci	SP_POWER0 = 43,
5698c2ecf20Sopenharmony_ci	SP_POWER1 = 44,
5708c2ecf20Sopenharmony_ci	SP_POWER2 = 45,
5718c2ecf20Sopenharmony_ci	SP_POWER3 = 46,
5728c2ecf20Sopenharmony_ci	SP_POWER4 = 47,
5738c2ecf20Sopenharmony_ci	SP_POWER5 = 48,
5748c2ecf20Sopenharmony_ci	SP_POWER6 = 49,
5758c2ecf20Sopenharmony_ci	SP_POWER7 = 50,
5768c2ecf20Sopenharmony_ci	SP_POWER8 = 51,
5778c2ecf20Sopenharmony_ci	SP_POWER9 = 52,
5788c2ecf20Sopenharmony_ci	SP_POWER10 = 53,
5798c2ecf20Sopenharmony_ci	SP_POWER11 = 54,
5808c2ecf20Sopenharmony_ci	SP_POWER12 = 55,
5818c2ecf20Sopenharmony_ci	SP_POWER13 = 56,
5828c2ecf20Sopenharmony_ci	SP_POWER14 = 57,
5838c2ecf20Sopenharmony_ci	SP_POWER15 = 58,
5848c2ecf20Sopenharmony_ci};
5858c2ecf20Sopenharmony_ci
5868c2ecf20Sopenharmony_cienum a4xx_tp_perfcounter_select {
5878c2ecf20Sopenharmony_ci	TP_L1_REQUESTS = 0,
5888c2ecf20Sopenharmony_ci	TP_L1_MISSES = 1,
5898c2ecf20Sopenharmony_ci	TP_QUADS_OFFSET = 8,
5908c2ecf20Sopenharmony_ci	TP_QUAD_SHADOW = 9,
5918c2ecf20Sopenharmony_ci	TP_QUADS_ARRAY = 10,
5928c2ecf20Sopenharmony_ci	TP_QUADS_GRADIENT = 11,
5938c2ecf20Sopenharmony_ci	TP_QUADS_1D2D = 12,
5948c2ecf20Sopenharmony_ci	TP_QUADS_3DCUBE = 13,
5958c2ecf20Sopenharmony_ci	TP_BUSY_CYCLES = 16,
5968c2ecf20Sopenharmony_ci	TP_STALL_CYCLES_BY_ARB = 17,
5978c2ecf20Sopenharmony_ci	TP_STATE_CACHE_REQUESTS = 20,
5988c2ecf20Sopenharmony_ci	TP_STATE_CACHE_MISSES = 21,
5998c2ecf20Sopenharmony_ci	TP_POWER0 = 22,
6008c2ecf20Sopenharmony_ci	TP_POWER1 = 23,
6018c2ecf20Sopenharmony_ci	TP_POWER2 = 24,
6028c2ecf20Sopenharmony_ci	TP_POWER3 = 25,
6038c2ecf20Sopenharmony_ci	TP_POWER4 = 26,
6048c2ecf20Sopenharmony_ci	TP_POWER5 = 27,
6058c2ecf20Sopenharmony_ci	TP_POWER6 = 28,
6068c2ecf20Sopenharmony_ci	TP_POWER7 = 29,
6078c2ecf20Sopenharmony_ci};
6088c2ecf20Sopenharmony_ci
6098c2ecf20Sopenharmony_cienum a4xx_uche_perfcounter_select {
6108c2ecf20Sopenharmony_ci	UCHE_VBIF_READ_BEATS_TP = 0,
6118c2ecf20Sopenharmony_ci	UCHE_VBIF_READ_BEATS_VFD = 1,
6128c2ecf20Sopenharmony_ci	UCHE_VBIF_READ_BEATS_HLSQ = 2,
6138c2ecf20Sopenharmony_ci	UCHE_VBIF_READ_BEATS_MARB = 3,
6148c2ecf20Sopenharmony_ci	UCHE_VBIF_READ_BEATS_SP = 4,
6158c2ecf20Sopenharmony_ci	UCHE_READ_REQUESTS_TP = 5,
6168c2ecf20Sopenharmony_ci	UCHE_READ_REQUESTS_VFD = 6,
6178c2ecf20Sopenharmony_ci	UCHE_READ_REQUESTS_HLSQ = 7,
6188c2ecf20Sopenharmony_ci	UCHE_READ_REQUESTS_MARB = 8,
6198c2ecf20Sopenharmony_ci	UCHE_READ_REQUESTS_SP = 9,
6208c2ecf20Sopenharmony_ci	UCHE_WRITE_REQUESTS_MARB = 10,
6218c2ecf20Sopenharmony_ci	UCHE_WRITE_REQUESTS_SP = 11,
6228c2ecf20Sopenharmony_ci	UCHE_TAG_CHECK_FAILS = 12,
6238c2ecf20Sopenharmony_ci	UCHE_EVICTS = 13,
6248c2ecf20Sopenharmony_ci	UCHE_FLUSHES = 14,
6258c2ecf20Sopenharmony_ci	UCHE_VBIF_LATENCY_CYCLES = 15,
6268c2ecf20Sopenharmony_ci	UCHE_VBIF_LATENCY_SAMPLES = 16,
6278c2ecf20Sopenharmony_ci	UCHE_BUSY_CYCLES = 17,
6288c2ecf20Sopenharmony_ci	UCHE_VBIF_READ_BEATS_PC = 18,
6298c2ecf20Sopenharmony_ci	UCHE_READ_REQUESTS_PC = 19,
6308c2ecf20Sopenharmony_ci	UCHE_WRITE_REQUESTS_VPC = 20,
6318c2ecf20Sopenharmony_ci	UCHE_STALL_BY_VBIF = 21,
6328c2ecf20Sopenharmony_ci	UCHE_WRITE_REQUESTS_VSC = 22,
6338c2ecf20Sopenharmony_ci	UCHE_POWER0 = 23,
6348c2ecf20Sopenharmony_ci	UCHE_POWER1 = 24,
6358c2ecf20Sopenharmony_ci	UCHE_POWER2 = 25,
6368c2ecf20Sopenharmony_ci	UCHE_POWER3 = 26,
6378c2ecf20Sopenharmony_ci	UCHE_POWER4 = 27,
6388c2ecf20Sopenharmony_ci	UCHE_POWER5 = 28,
6398c2ecf20Sopenharmony_ci	UCHE_POWER6 = 29,
6408c2ecf20Sopenharmony_ci	UCHE_POWER7 = 30,
6418c2ecf20Sopenharmony_ci};
6428c2ecf20Sopenharmony_ci
6438c2ecf20Sopenharmony_cienum a4xx_vbif_perfcounter_select {
6448c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_0 = 0,
6458c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_1 = 1,
6468c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_2 = 2,
6478c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_3 = 3,
6488c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_4 = 4,
6498c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_5 = 5,
6508c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_6 = 6,
6518c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_7 = 7,
6528c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_8 = 8,
6538c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_9 = 9,
6548c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_10 = 10,
6558c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_11 = 11,
6568c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_12 = 12,
6578c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_13 = 13,
6588c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_14 = 14,
6598c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_ID_15 = 15,
6608c2ecf20Sopenharmony_ci	AXI0_READ_REQUESTS_TOTAL = 16,
6618c2ecf20Sopenharmony_ci	AXI1_READ_REQUESTS_TOTAL = 17,
6628c2ecf20Sopenharmony_ci	AXI2_READ_REQUESTS_TOTAL = 18,
6638c2ecf20Sopenharmony_ci	AXI3_READ_REQUESTS_TOTAL = 19,
6648c2ecf20Sopenharmony_ci	AXI_READ_REQUESTS_TOTAL = 20,
6658c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_0 = 21,
6668c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_1 = 22,
6678c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_2 = 23,
6688c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_3 = 24,
6698c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_4 = 25,
6708c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_5 = 26,
6718c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_6 = 27,
6728c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_7 = 28,
6738c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_8 = 29,
6748c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_9 = 30,
6758c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_10 = 31,
6768c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_11 = 32,
6778c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_12 = 33,
6788c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_13 = 34,
6798c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_14 = 35,
6808c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_ID_15 = 36,
6818c2ecf20Sopenharmony_ci	AXI0_WRITE_REQUESTS_TOTAL = 37,
6828c2ecf20Sopenharmony_ci	AXI1_WRITE_REQUESTS_TOTAL = 38,
6838c2ecf20Sopenharmony_ci	AXI2_WRITE_REQUESTS_TOTAL = 39,
6848c2ecf20Sopenharmony_ci	AXI3_WRITE_REQUESTS_TOTAL = 40,
6858c2ecf20Sopenharmony_ci	AXI_WRITE_REQUESTS_TOTAL = 41,
6868c2ecf20Sopenharmony_ci	AXI_TOTAL_REQUESTS = 42,
6878c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_0 = 43,
6888c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_1 = 44,
6898c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_2 = 45,
6908c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_3 = 46,
6918c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_4 = 47,
6928c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_5 = 48,
6938c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_6 = 49,
6948c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_7 = 50,
6958c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_8 = 51,
6968c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_9 = 52,
6978c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_10 = 53,
6988c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_11 = 54,
6998c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_12 = 55,
7008c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_13 = 56,
7018c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_14 = 57,
7028c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_ID_15 = 58,
7038c2ecf20Sopenharmony_ci	AXI0_READ_DATA_BEATS_TOTAL = 59,
7048c2ecf20Sopenharmony_ci	AXI1_READ_DATA_BEATS_TOTAL = 60,
7058c2ecf20Sopenharmony_ci	AXI2_READ_DATA_BEATS_TOTAL = 61,
7068c2ecf20Sopenharmony_ci	AXI3_READ_DATA_BEATS_TOTAL = 62,
7078c2ecf20Sopenharmony_ci	AXI_READ_DATA_BEATS_TOTAL = 63,
7088c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_0 = 64,
7098c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_1 = 65,
7108c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_2 = 66,
7118c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_3 = 67,
7128c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_4 = 68,
7138c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_5 = 69,
7148c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_6 = 70,
7158c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_7 = 71,
7168c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_8 = 72,
7178c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_9 = 73,
7188c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_10 = 74,
7198c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_11 = 75,
7208c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_12 = 76,
7218c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_13 = 77,
7228c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_14 = 78,
7238c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_ID_15 = 79,
7248c2ecf20Sopenharmony_ci	AXI0_WRITE_DATA_BEATS_TOTAL = 80,
7258c2ecf20Sopenharmony_ci	AXI1_WRITE_DATA_BEATS_TOTAL = 81,
7268c2ecf20Sopenharmony_ci	AXI2_WRITE_DATA_BEATS_TOTAL = 82,
7278c2ecf20Sopenharmony_ci	AXI3_WRITE_DATA_BEATS_TOTAL = 83,
7288c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_BEATS_TOTAL = 84,
7298c2ecf20Sopenharmony_ci	AXI_DATA_BEATS_TOTAL = 85,
7308c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_0 = 86,
7318c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_1 = 87,
7328c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_2 = 88,
7338c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_3 = 89,
7348c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_4 = 90,
7358c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_5 = 91,
7368c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_6 = 92,
7378c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_7 = 93,
7388c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_8 = 94,
7398c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_9 = 95,
7408c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_10 = 96,
7418c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_11 = 97,
7428c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_12 = 98,
7438c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_13 = 99,
7448c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_14 = 100,
7458c2ecf20Sopenharmony_ci	CYCLES_HELD_OFF_ID_15 = 101,
7468c2ecf20Sopenharmony_ci	AXI_READ_REQUEST_HELD_OFF = 102,
7478c2ecf20Sopenharmony_ci	AXI_WRITE_REQUEST_HELD_OFF = 103,
7488c2ecf20Sopenharmony_ci	AXI_REQUEST_HELD_OFF = 104,
7498c2ecf20Sopenharmony_ci	AXI_WRITE_DATA_HELD_OFF = 105,
7508c2ecf20Sopenharmony_ci	OCMEM_AXI_READ_REQUEST_HELD_OFF = 106,
7518c2ecf20Sopenharmony_ci	OCMEM_AXI_WRITE_REQUEST_HELD_OFF = 107,
7528c2ecf20Sopenharmony_ci	OCMEM_AXI_REQUEST_HELD_OFF = 108,
7538c2ecf20Sopenharmony_ci	OCMEM_AXI_WRITE_DATA_HELD_OFF = 109,
7548c2ecf20Sopenharmony_ci	ELAPSED_CYCLES_DDR = 110,
7558c2ecf20Sopenharmony_ci	ELAPSED_CYCLES_OCMEM = 111,
7568c2ecf20Sopenharmony_ci};
7578c2ecf20Sopenharmony_ci
7588c2ecf20Sopenharmony_cienum a4xx_vfd_perfcounter_select {
7598c2ecf20Sopenharmony_ci	VFD_UCHE_BYTE_FETCHED = 0,
7608c2ecf20Sopenharmony_ci	VFD_UCHE_TRANS = 1,
7618c2ecf20Sopenharmony_ci	VFD_FETCH_INSTRUCTIONS = 3,
7628c2ecf20Sopenharmony_ci	VFD_BUSY_CYCLES = 5,
7638c2ecf20Sopenharmony_ci	VFD_STALL_CYCLES_UCHE = 6,
7648c2ecf20Sopenharmony_ci	VFD_STALL_CYCLES_HLSQ = 7,
7658c2ecf20Sopenharmony_ci	VFD_STALL_CYCLES_VPC_BYPASS = 8,
7668c2ecf20Sopenharmony_ci	VFD_STALL_CYCLES_VPC_ALLOC = 9,
7678c2ecf20Sopenharmony_ci	VFD_MODE_0_FIBERS = 13,
7688c2ecf20Sopenharmony_ci	VFD_MODE_1_FIBERS = 14,
7698c2ecf20Sopenharmony_ci	VFD_MODE_2_FIBERS = 15,
7708c2ecf20Sopenharmony_ci	VFD_MODE_3_FIBERS = 16,
7718c2ecf20Sopenharmony_ci	VFD_MODE_4_FIBERS = 17,
7728c2ecf20Sopenharmony_ci	VFD_BFIFO_STALL = 18,
7738c2ecf20Sopenharmony_ci	VFD_NUM_VERTICES_TOTAL = 19,
7748c2ecf20Sopenharmony_ci	VFD_PACKER_FULL = 20,
7758c2ecf20Sopenharmony_ci	VFD_UCHE_REQUEST_FIFO_FULL = 21,
7768c2ecf20Sopenharmony_ci	VFD_STARVE_CYCLES_PC = 22,
7778c2ecf20Sopenharmony_ci	VFD_STARVE_CYCLES_UCHE = 23,
7788c2ecf20Sopenharmony_ci};
7798c2ecf20Sopenharmony_ci
7808c2ecf20Sopenharmony_cienum a4xx_vpc_perfcounter_select {
7818c2ecf20Sopenharmony_ci	VPC_SP_LM_COMPONENTS = 2,
7828c2ecf20Sopenharmony_ci	VPC_SP0_LM_BYTES = 3,
7838c2ecf20Sopenharmony_ci	VPC_SP1_LM_BYTES = 4,
7848c2ecf20Sopenharmony_ci	VPC_SP2_LM_BYTES = 5,
7858c2ecf20Sopenharmony_ci	VPC_SP3_LM_BYTES = 6,
7868c2ecf20Sopenharmony_ci	VPC_WORKING_CYCLES = 7,
7878c2ecf20Sopenharmony_ci	VPC_STALL_CYCLES_LM = 8,
7888c2ecf20Sopenharmony_ci	VPC_STARVE_CYCLES_RAS = 9,
7898c2ecf20Sopenharmony_ci	VPC_STREAMOUT_CYCLES = 10,
7908c2ecf20Sopenharmony_ci	VPC_UCHE_TRANSACTIONS = 12,
7918c2ecf20Sopenharmony_ci	VPC_STALL_CYCLES_UCHE = 13,
7928c2ecf20Sopenharmony_ci	VPC_BUSY_CYCLES = 14,
7938c2ecf20Sopenharmony_ci	VPC_STARVE_CYCLES_SP = 15,
7948c2ecf20Sopenharmony_ci};
7958c2ecf20Sopenharmony_ci
7968c2ecf20Sopenharmony_cienum a4xx_vsc_perfcounter_select {
7978c2ecf20Sopenharmony_ci	VSC_BUSY_CYCLES = 0,
7988c2ecf20Sopenharmony_ci	VSC_WORKING_CYCLES = 1,
7998c2ecf20Sopenharmony_ci	VSC_STALL_CYCLES_UCHE = 2,
8008c2ecf20Sopenharmony_ci	VSC_STARVE_CYCLES_RAS = 3,
8018c2ecf20Sopenharmony_ci	VSC_EOT_NUM = 4,
8028c2ecf20Sopenharmony_ci};
8038c2ecf20Sopenharmony_ci
8048c2ecf20Sopenharmony_cienum a4xx_tex_filter {
8058c2ecf20Sopenharmony_ci	A4XX_TEX_NEAREST = 0,
8068c2ecf20Sopenharmony_ci	A4XX_TEX_LINEAR = 1,
8078c2ecf20Sopenharmony_ci	A4XX_TEX_ANISO = 2,
8088c2ecf20Sopenharmony_ci};
8098c2ecf20Sopenharmony_ci
8108c2ecf20Sopenharmony_cienum a4xx_tex_clamp {
8118c2ecf20Sopenharmony_ci	A4XX_TEX_REPEAT = 0,
8128c2ecf20Sopenharmony_ci	A4XX_TEX_CLAMP_TO_EDGE = 1,
8138c2ecf20Sopenharmony_ci	A4XX_TEX_MIRROR_REPEAT = 2,
8148c2ecf20Sopenharmony_ci	A4XX_TEX_CLAMP_TO_BORDER = 3,
8158c2ecf20Sopenharmony_ci	A4XX_TEX_MIRROR_CLAMP = 4,
8168c2ecf20Sopenharmony_ci};
8178c2ecf20Sopenharmony_ci
8188c2ecf20Sopenharmony_cienum a4xx_tex_aniso {
8198c2ecf20Sopenharmony_ci	A4XX_TEX_ANISO_1 = 0,
8208c2ecf20Sopenharmony_ci	A4XX_TEX_ANISO_2 = 1,
8218c2ecf20Sopenharmony_ci	A4XX_TEX_ANISO_4 = 2,
8228c2ecf20Sopenharmony_ci	A4XX_TEX_ANISO_8 = 3,
8238c2ecf20Sopenharmony_ci	A4XX_TEX_ANISO_16 = 4,
8248c2ecf20Sopenharmony_ci};
8258c2ecf20Sopenharmony_ci
8268c2ecf20Sopenharmony_cienum a4xx_tex_swiz {
8278c2ecf20Sopenharmony_ci	A4XX_TEX_X = 0,
8288c2ecf20Sopenharmony_ci	A4XX_TEX_Y = 1,
8298c2ecf20Sopenharmony_ci	A4XX_TEX_Z = 2,
8308c2ecf20Sopenharmony_ci	A4XX_TEX_W = 3,
8318c2ecf20Sopenharmony_ci	A4XX_TEX_ZERO = 4,
8328c2ecf20Sopenharmony_ci	A4XX_TEX_ONE = 5,
8338c2ecf20Sopenharmony_ci};
8348c2ecf20Sopenharmony_ci
8358c2ecf20Sopenharmony_cienum a4xx_tex_type {
8368c2ecf20Sopenharmony_ci	A4XX_TEX_1D = 0,
8378c2ecf20Sopenharmony_ci	A4XX_TEX_2D = 1,
8388c2ecf20Sopenharmony_ci	A4XX_TEX_CUBE = 2,
8398c2ecf20Sopenharmony_ci	A4XX_TEX_3D = 3,
8408c2ecf20Sopenharmony_ci};
8418c2ecf20Sopenharmony_ci
8428c2ecf20Sopenharmony_ci#define A4XX_CGC_HLSQ_EARLY_CYC__MASK				0x00700000
8438c2ecf20Sopenharmony_ci#define A4XX_CGC_HLSQ_EARLY_CYC__SHIFT				20
8448c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CGC_HLSQ_EARLY_CYC(uint32_t val)
8458c2ecf20Sopenharmony_ci{
8468c2ecf20Sopenharmony_ci	return ((val) << A4XX_CGC_HLSQ_EARLY_CYC__SHIFT) & A4XX_CGC_HLSQ_EARLY_CYC__MASK;
8478c2ecf20Sopenharmony_ci}
8488c2ecf20Sopenharmony_ci#define A4XX_INT0_RBBM_GPU_IDLE					0x00000001
8498c2ecf20Sopenharmony_ci#define A4XX_INT0_RBBM_AHB_ERROR				0x00000002
8508c2ecf20Sopenharmony_ci#define A4XX_INT0_RBBM_REG_TIMEOUT				0x00000004
8518c2ecf20Sopenharmony_ci#define A4XX_INT0_RBBM_ME_MS_TIMEOUT				0x00000008
8528c2ecf20Sopenharmony_ci#define A4XX_INT0_RBBM_PFP_MS_TIMEOUT				0x00000010
8538c2ecf20Sopenharmony_ci#define A4XX_INT0_RBBM_ATB_BUS_OVERFLOW				0x00000020
8548c2ecf20Sopenharmony_ci#define A4XX_INT0_VFD_ERROR					0x00000040
8558c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_SW_INT					0x00000080
8568c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_T0_PACKET_IN_IB				0x00000100
8578c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_OPCODE_ERROR				0x00000200
8588c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_RESERVED_BIT_ERROR				0x00000400
8598c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_HW_FAULT					0x00000800
8608c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_DMA					0x00001000
8618c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_IB2_INT					0x00002000
8628c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_IB1_INT					0x00004000
8638c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_RB_INT					0x00008000
8648c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_REG_PROTECT_FAULT				0x00010000
8658c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_RB_DONE_TS					0x00020000
8668c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_VS_DONE_TS					0x00040000
8678c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_PS_DONE_TS					0x00080000
8688c2ecf20Sopenharmony_ci#define A4XX_INT0_CACHE_FLUSH_TS				0x00100000
8698c2ecf20Sopenharmony_ci#define A4XX_INT0_CP_AHB_ERROR_HALT				0x00200000
8708c2ecf20Sopenharmony_ci#define A4XX_INT0_MISC_HANG_DETECT				0x01000000
8718c2ecf20Sopenharmony_ci#define A4XX_INT0_UCHE_OOB_ACCESS				0x02000000
8728c2ecf20Sopenharmony_ci#define REG_A4XX_RB_GMEM_BASE_ADDR				0x00000cc0
8738c2ecf20Sopenharmony_ci
8748c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_RB_SEL_0				0x00000cc7
8758c2ecf20Sopenharmony_ci
8768c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_RB_SEL_1				0x00000cc8
8778c2ecf20Sopenharmony_ci
8788c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_RB_SEL_2				0x00000cc9
8798c2ecf20Sopenharmony_ci
8808c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_RB_SEL_3				0x00000cca
8818c2ecf20Sopenharmony_ci
8828c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_RB_SEL_4				0x00000ccb
8838c2ecf20Sopenharmony_ci
8848c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_RB_SEL_5				0x00000ccc
8858c2ecf20Sopenharmony_ci
8868c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_RB_SEL_6				0x00000ccd
8878c2ecf20Sopenharmony_ci
8888c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_RB_SEL_7				0x00000cce
8898c2ecf20Sopenharmony_ci
8908c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_CCU_SEL_0				0x00000ccf
8918c2ecf20Sopenharmony_ci
8928c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_CCU_SEL_1				0x00000cd0
8938c2ecf20Sopenharmony_ci
8948c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_CCU_SEL_2				0x00000cd1
8958c2ecf20Sopenharmony_ci
8968c2ecf20Sopenharmony_ci#define REG_A4XX_RB_PERFCTR_CCU_SEL_3				0x00000cd2
8978c2ecf20Sopenharmony_ci
8988c2ecf20Sopenharmony_ci#define REG_A4XX_RB_FRAME_BUFFER_DIMENSION			0x00000ce0
8998c2ecf20Sopenharmony_ci#define A4XX_RB_FRAME_BUFFER_DIMENSION_WIDTH__MASK		0x00003fff
9008c2ecf20Sopenharmony_ci#define A4XX_RB_FRAME_BUFFER_DIMENSION_WIDTH__SHIFT		0
9018c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_FRAME_BUFFER_DIMENSION_WIDTH(uint32_t val)
9028c2ecf20Sopenharmony_ci{
9038c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_FRAME_BUFFER_DIMENSION_WIDTH__SHIFT) & A4XX_RB_FRAME_BUFFER_DIMENSION_WIDTH__MASK;
9048c2ecf20Sopenharmony_ci}
9058c2ecf20Sopenharmony_ci#define A4XX_RB_FRAME_BUFFER_DIMENSION_HEIGHT__MASK		0x3fff0000
9068c2ecf20Sopenharmony_ci#define A4XX_RB_FRAME_BUFFER_DIMENSION_HEIGHT__SHIFT		16
9078c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_FRAME_BUFFER_DIMENSION_HEIGHT(uint32_t val)
9088c2ecf20Sopenharmony_ci{
9098c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_FRAME_BUFFER_DIMENSION_HEIGHT__SHIFT) & A4XX_RB_FRAME_BUFFER_DIMENSION_HEIGHT__MASK;
9108c2ecf20Sopenharmony_ci}
9118c2ecf20Sopenharmony_ci
9128c2ecf20Sopenharmony_ci#define REG_A4XX_RB_CLEAR_COLOR_DW0				0x000020cc
9138c2ecf20Sopenharmony_ci
9148c2ecf20Sopenharmony_ci#define REG_A4XX_RB_CLEAR_COLOR_DW1				0x000020cd
9158c2ecf20Sopenharmony_ci
9168c2ecf20Sopenharmony_ci#define REG_A4XX_RB_CLEAR_COLOR_DW2				0x000020ce
9178c2ecf20Sopenharmony_ci
9188c2ecf20Sopenharmony_ci#define REG_A4XX_RB_CLEAR_COLOR_DW3				0x000020cf
9198c2ecf20Sopenharmony_ci
9208c2ecf20Sopenharmony_ci#define REG_A4XX_RB_MODE_CONTROL				0x000020a0
9218c2ecf20Sopenharmony_ci#define A4XX_RB_MODE_CONTROL_WIDTH__MASK			0x0000003f
9228c2ecf20Sopenharmony_ci#define A4XX_RB_MODE_CONTROL_WIDTH__SHIFT			0
9238c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MODE_CONTROL_WIDTH(uint32_t val)
9248c2ecf20Sopenharmony_ci{
9258c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_RB_MODE_CONTROL_WIDTH__SHIFT) & A4XX_RB_MODE_CONTROL_WIDTH__MASK;
9268c2ecf20Sopenharmony_ci}
9278c2ecf20Sopenharmony_ci#define A4XX_RB_MODE_CONTROL_HEIGHT__MASK			0x00003f00
9288c2ecf20Sopenharmony_ci#define A4XX_RB_MODE_CONTROL_HEIGHT__SHIFT			8
9298c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MODE_CONTROL_HEIGHT(uint32_t val)
9308c2ecf20Sopenharmony_ci{
9318c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_RB_MODE_CONTROL_HEIGHT__SHIFT) & A4XX_RB_MODE_CONTROL_HEIGHT__MASK;
9328c2ecf20Sopenharmony_ci}
9338c2ecf20Sopenharmony_ci#define A4XX_RB_MODE_CONTROL_ENABLE_GMEM			0x00010000
9348c2ecf20Sopenharmony_ci
9358c2ecf20Sopenharmony_ci#define REG_A4XX_RB_RENDER_CONTROL				0x000020a1
9368c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL_BINNING_PASS			0x00000001
9378c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL_DISABLE_COLOR_PIPE		0x00000020
9388c2ecf20Sopenharmony_ci
9398c2ecf20Sopenharmony_ci#define REG_A4XX_RB_MSAA_CONTROL				0x000020a2
9408c2ecf20Sopenharmony_ci#define A4XX_RB_MSAA_CONTROL_DISABLE				0x00001000
9418c2ecf20Sopenharmony_ci#define A4XX_RB_MSAA_CONTROL_SAMPLES__MASK			0x0000e000
9428c2ecf20Sopenharmony_ci#define A4XX_RB_MSAA_CONTROL_SAMPLES__SHIFT			13
9438c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MSAA_CONTROL_SAMPLES(uint32_t val)
9448c2ecf20Sopenharmony_ci{
9458c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MSAA_CONTROL_SAMPLES__SHIFT) & A4XX_RB_MSAA_CONTROL_SAMPLES__MASK;
9468c2ecf20Sopenharmony_ci}
9478c2ecf20Sopenharmony_ci
9488c2ecf20Sopenharmony_ci#define REG_A4XX_RB_RENDER_CONTROL2				0x000020a3
9498c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_COORD_MASK__MASK		0x0000000f
9508c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_COORD_MASK__SHIFT		0
9518c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_RENDER_CONTROL2_COORD_MASK(uint32_t val)
9528c2ecf20Sopenharmony_ci{
9538c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_RENDER_CONTROL2_COORD_MASK__SHIFT) & A4XX_RB_RENDER_CONTROL2_COORD_MASK__MASK;
9548c2ecf20Sopenharmony_ci}
9558c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_SAMPLEMASK			0x00000010
9568c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_FACENESS			0x00000020
9578c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_SAMPLEID			0x00000040
9588c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_MSAA_SAMPLES__MASK		0x00000380
9598c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_MSAA_SAMPLES__SHIFT		7
9608c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_RENDER_CONTROL2_MSAA_SAMPLES(uint32_t val)
9618c2ecf20Sopenharmony_ci{
9628c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_RENDER_CONTROL2_MSAA_SAMPLES__SHIFT) & A4XX_RB_RENDER_CONTROL2_MSAA_SAMPLES__MASK;
9638c2ecf20Sopenharmony_ci}
9648c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_SAMPLEID_HR			0x00000800
9658c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_IJ_PERSP_PIXEL			0x00001000
9668c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_IJ_PERSP_CENTROID		0x00002000
9678c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_IJ_PERSP_SAMPLE			0x00004000
9688c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_CONTROL2_SIZE				0x00008000
9698c2ecf20Sopenharmony_ci
9708c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RB_MRT(uint32_t i0) { return 0x000020a4 + 0x5*i0; }
9718c2ecf20Sopenharmony_ci
9728c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RB_MRT_CONTROL(uint32_t i0) { return 0x000020a4 + 0x5*i0; }
9738c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_CONTROL_READ_DEST_ENABLE			0x00000008
9748c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_CONTROL_BLEND				0x00000010
9758c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_CONTROL_BLEND2				0x00000020
9768c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_CONTROL_ROP_ENABLE				0x00000040
9778c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_CONTROL_ROP_CODE__MASK			0x00000f00
9788c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_CONTROL_ROP_CODE__SHIFT			8
9798c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_CONTROL_ROP_CODE(enum a3xx_rop_code val)
9808c2ecf20Sopenharmony_ci{
9818c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_CONTROL_ROP_CODE__SHIFT) & A4XX_RB_MRT_CONTROL_ROP_CODE__MASK;
9828c2ecf20Sopenharmony_ci}
9838c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE__MASK		0x0f000000
9848c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE__SHIFT		24
9858c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE(uint32_t val)
9868c2ecf20Sopenharmony_ci{
9878c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE__SHIFT) & A4XX_RB_MRT_CONTROL_COMPONENT_ENABLE__MASK;
9888c2ecf20Sopenharmony_ci}
9898c2ecf20Sopenharmony_ci
9908c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RB_MRT_BUF_INFO(uint32_t i0) { return 0x000020a5 + 0x5*i0; }
9918c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_COLOR_FORMAT__MASK			0x0000003f
9928c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_COLOR_FORMAT__SHIFT		0
9938c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BUF_INFO_COLOR_FORMAT(enum a4xx_color_fmt val)
9948c2ecf20Sopenharmony_ci{
9958c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_BUF_INFO_COLOR_FORMAT__SHIFT) & A4XX_RB_MRT_BUF_INFO_COLOR_FORMAT__MASK;
9968c2ecf20Sopenharmony_ci}
9978c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE__MASK		0x000000c0
9988c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE__SHIFT		6
9998c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE(enum a4xx_tile_mode val)
10008c2ecf20Sopenharmony_ci{
10018c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE__SHIFT) & A4XX_RB_MRT_BUF_INFO_COLOR_TILE_MODE__MASK;
10028c2ecf20Sopenharmony_ci}
10038c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_DITHER_MODE__MASK			0x00000600
10048c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_DITHER_MODE__SHIFT			9
10058c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BUF_INFO_DITHER_MODE(enum adreno_rb_dither_mode val)
10068c2ecf20Sopenharmony_ci{
10078c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_BUF_INFO_DITHER_MODE__SHIFT) & A4XX_RB_MRT_BUF_INFO_DITHER_MODE__MASK;
10088c2ecf20Sopenharmony_ci}
10098c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_COLOR_SWAP__MASK			0x00001800
10108c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_COLOR_SWAP__SHIFT			11
10118c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BUF_INFO_COLOR_SWAP(enum a3xx_color_swap val)
10128c2ecf20Sopenharmony_ci{
10138c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_BUF_INFO_COLOR_SWAP__SHIFT) & A4XX_RB_MRT_BUF_INFO_COLOR_SWAP__MASK;
10148c2ecf20Sopenharmony_ci}
10158c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_COLOR_SRGB				0x00002000
10168c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_COLOR_BUF_PITCH__MASK		0xffffc000
10178c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BUF_INFO_COLOR_BUF_PITCH__SHIFT		14
10188c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BUF_INFO_COLOR_BUF_PITCH(uint32_t val)
10198c2ecf20Sopenharmony_ci{
10208c2ecf20Sopenharmony_ci	return ((val >> 4) << A4XX_RB_MRT_BUF_INFO_COLOR_BUF_PITCH__SHIFT) & A4XX_RB_MRT_BUF_INFO_COLOR_BUF_PITCH__MASK;
10218c2ecf20Sopenharmony_ci}
10228c2ecf20Sopenharmony_ci
10238c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RB_MRT_BASE(uint32_t i0) { return 0x000020a6 + 0x5*i0; }
10248c2ecf20Sopenharmony_ci
10258c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RB_MRT_CONTROL3(uint32_t i0) { return 0x000020a7 + 0x5*i0; }
10268c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_CONTROL3_STRIDE__MASK			0x03fffff8
10278c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_CONTROL3_STRIDE__SHIFT			3
10288c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_CONTROL3_STRIDE(uint32_t val)
10298c2ecf20Sopenharmony_ci{
10308c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_CONTROL3_STRIDE__SHIFT) & A4XX_RB_MRT_CONTROL3_STRIDE__MASK;
10318c2ecf20Sopenharmony_ci}
10328c2ecf20Sopenharmony_ci
10338c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RB_MRT_BLEND_CONTROL(uint32_t i0) { return 0x000020a8 + 0x5*i0; }
10348c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_RGB_SRC_FACTOR__MASK		0x0000001f
10358c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_RGB_SRC_FACTOR__SHIFT		0
10368c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_RGB_SRC_FACTOR(enum adreno_rb_blend_factor val)
10378c2ecf20Sopenharmony_ci{
10388c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_BLEND_CONTROL_RGB_SRC_FACTOR__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_RGB_SRC_FACTOR__MASK;
10398c2ecf20Sopenharmony_ci}
10408c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_RGB_BLEND_OPCODE__MASK	0x000000e0
10418c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_RGB_BLEND_OPCODE__SHIFT	5
10428c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_RGB_BLEND_OPCODE(enum a3xx_rb_blend_opcode val)
10438c2ecf20Sopenharmony_ci{
10448c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_BLEND_CONTROL_RGB_BLEND_OPCODE__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_RGB_BLEND_OPCODE__MASK;
10458c2ecf20Sopenharmony_ci}
10468c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_RGB_DEST_FACTOR__MASK		0x00001f00
10478c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_RGB_DEST_FACTOR__SHIFT	8
10488c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_RGB_DEST_FACTOR(enum adreno_rb_blend_factor val)
10498c2ecf20Sopenharmony_ci{
10508c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_BLEND_CONTROL_RGB_DEST_FACTOR__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_RGB_DEST_FACTOR__MASK;
10518c2ecf20Sopenharmony_ci}
10528c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_SRC_FACTOR__MASK	0x001f0000
10538c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_SRC_FACTOR__SHIFT	16
10548c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_ALPHA_SRC_FACTOR(enum adreno_rb_blend_factor val)
10558c2ecf20Sopenharmony_ci{
10568c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_BLEND_CONTROL_ALPHA_SRC_FACTOR__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_ALPHA_SRC_FACTOR__MASK;
10578c2ecf20Sopenharmony_ci}
10588c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_BLEND_OPCODE__MASK	0x00e00000
10598c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_BLEND_OPCODE__SHIFT	21
10608c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_ALPHA_BLEND_OPCODE(enum a3xx_rb_blend_opcode val)
10618c2ecf20Sopenharmony_ci{
10628c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_BLEND_CONTROL_ALPHA_BLEND_OPCODE__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_ALPHA_BLEND_OPCODE__MASK;
10638c2ecf20Sopenharmony_ci}
10648c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_DEST_FACTOR__MASK	0x1f000000
10658c2ecf20Sopenharmony_ci#define A4XX_RB_MRT_BLEND_CONTROL_ALPHA_DEST_FACTOR__SHIFT	24
10668c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_MRT_BLEND_CONTROL_ALPHA_DEST_FACTOR(enum adreno_rb_blend_factor val)
10678c2ecf20Sopenharmony_ci{
10688c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_MRT_BLEND_CONTROL_ALPHA_DEST_FACTOR__SHIFT) & A4XX_RB_MRT_BLEND_CONTROL_ALPHA_DEST_FACTOR__MASK;
10698c2ecf20Sopenharmony_ci}
10708c2ecf20Sopenharmony_ci
10718c2ecf20Sopenharmony_ci#define REG_A4XX_RB_BLEND_RED					0x000020f0
10728c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_RED_UINT__MASK				0x000000ff
10738c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_RED_UINT__SHIFT				0
10748c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_RED_UINT(uint32_t val)
10758c2ecf20Sopenharmony_ci{
10768c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_BLEND_RED_UINT__SHIFT) & A4XX_RB_BLEND_RED_UINT__MASK;
10778c2ecf20Sopenharmony_ci}
10788c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_RED_SINT__MASK				0x0000ff00
10798c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_RED_SINT__SHIFT				8
10808c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_RED_SINT(uint32_t val)
10818c2ecf20Sopenharmony_ci{
10828c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_BLEND_RED_SINT__SHIFT) & A4XX_RB_BLEND_RED_SINT__MASK;
10838c2ecf20Sopenharmony_ci}
10848c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_RED_FLOAT__MASK				0xffff0000
10858c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_RED_FLOAT__SHIFT				16
10868c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_RED_FLOAT(float val)
10878c2ecf20Sopenharmony_ci{
10888c2ecf20Sopenharmony_ci	return ((util_float_to_half(val)) << A4XX_RB_BLEND_RED_FLOAT__SHIFT) & A4XX_RB_BLEND_RED_FLOAT__MASK;
10898c2ecf20Sopenharmony_ci}
10908c2ecf20Sopenharmony_ci
10918c2ecf20Sopenharmony_ci#define REG_A4XX_RB_BLEND_RED_F32				0x000020f1
10928c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_RED_F32__MASK				0xffffffff
10938c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_RED_F32__SHIFT				0
10948c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_RED_F32(float val)
10958c2ecf20Sopenharmony_ci{
10968c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_RB_BLEND_RED_F32__SHIFT) & A4XX_RB_BLEND_RED_F32__MASK;
10978c2ecf20Sopenharmony_ci}
10988c2ecf20Sopenharmony_ci
10998c2ecf20Sopenharmony_ci#define REG_A4XX_RB_BLEND_GREEN					0x000020f2
11008c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_GREEN_UINT__MASK				0x000000ff
11018c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_GREEN_UINT__SHIFT				0
11028c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_GREEN_UINT(uint32_t val)
11038c2ecf20Sopenharmony_ci{
11048c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_BLEND_GREEN_UINT__SHIFT) & A4XX_RB_BLEND_GREEN_UINT__MASK;
11058c2ecf20Sopenharmony_ci}
11068c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_GREEN_SINT__MASK				0x0000ff00
11078c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_GREEN_SINT__SHIFT				8
11088c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_GREEN_SINT(uint32_t val)
11098c2ecf20Sopenharmony_ci{
11108c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_BLEND_GREEN_SINT__SHIFT) & A4XX_RB_BLEND_GREEN_SINT__MASK;
11118c2ecf20Sopenharmony_ci}
11128c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_GREEN_FLOAT__MASK				0xffff0000
11138c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_GREEN_FLOAT__SHIFT			16
11148c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_GREEN_FLOAT(float val)
11158c2ecf20Sopenharmony_ci{
11168c2ecf20Sopenharmony_ci	return ((util_float_to_half(val)) << A4XX_RB_BLEND_GREEN_FLOAT__SHIFT) & A4XX_RB_BLEND_GREEN_FLOAT__MASK;
11178c2ecf20Sopenharmony_ci}
11188c2ecf20Sopenharmony_ci
11198c2ecf20Sopenharmony_ci#define REG_A4XX_RB_BLEND_GREEN_F32				0x000020f3
11208c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_GREEN_F32__MASK				0xffffffff
11218c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_GREEN_F32__SHIFT				0
11228c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_GREEN_F32(float val)
11238c2ecf20Sopenharmony_ci{
11248c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_RB_BLEND_GREEN_F32__SHIFT) & A4XX_RB_BLEND_GREEN_F32__MASK;
11258c2ecf20Sopenharmony_ci}
11268c2ecf20Sopenharmony_ci
11278c2ecf20Sopenharmony_ci#define REG_A4XX_RB_BLEND_BLUE					0x000020f4
11288c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_BLUE_UINT__MASK				0x000000ff
11298c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_BLUE_UINT__SHIFT				0
11308c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_BLUE_UINT(uint32_t val)
11318c2ecf20Sopenharmony_ci{
11328c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_BLEND_BLUE_UINT__SHIFT) & A4XX_RB_BLEND_BLUE_UINT__MASK;
11338c2ecf20Sopenharmony_ci}
11348c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_BLUE_SINT__MASK				0x0000ff00
11358c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_BLUE_SINT__SHIFT				8
11368c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_BLUE_SINT(uint32_t val)
11378c2ecf20Sopenharmony_ci{
11388c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_BLEND_BLUE_SINT__SHIFT) & A4XX_RB_BLEND_BLUE_SINT__MASK;
11398c2ecf20Sopenharmony_ci}
11408c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_BLUE_FLOAT__MASK				0xffff0000
11418c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_BLUE_FLOAT__SHIFT				16
11428c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_BLUE_FLOAT(float val)
11438c2ecf20Sopenharmony_ci{
11448c2ecf20Sopenharmony_ci	return ((util_float_to_half(val)) << A4XX_RB_BLEND_BLUE_FLOAT__SHIFT) & A4XX_RB_BLEND_BLUE_FLOAT__MASK;
11458c2ecf20Sopenharmony_ci}
11468c2ecf20Sopenharmony_ci
11478c2ecf20Sopenharmony_ci#define REG_A4XX_RB_BLEND_BLUE_F32				0x000020f5
11488c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_BLUE_F32__MASK				0xffffffff
11498c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_BLUE_F32__SHIFT				0
11508c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_BLUE_F32(float val)
11518c2ecf20Sopenharmony_ci{
11528c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_RB_BLEND_BLUE_F32__SHIFT) & A4XX_RB_BLEND_BLUE_F32__MASK;
11538c2ecf20Sopenharmony_ci}
11548c2ecf20Sopenharmony_ci
11558c2ecf20Sopenharmony_ci#define REG_A4XX_RB_BLEND_ALPHA					0x000020f6
11568c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_ALPHA_UINT__MASK				0x000000ff
11578c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_ALPHA_UINT__SHIFT				0
11588c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_ALPHA_UINT(uint32_t val)
11598c2ecf20Sopenharmony_ci{
11608c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_BLEND_ALPHA_UINT__SHIFT) & A4XX_RB_BLEND_ALPHA_UINT__MASK;
11618c2ecf20Sopenharmony_ci}
11628c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_ALPHA_SINT__MASK				0x0000ff00
11638c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_ALPHA_SINT__SHIFT				8
11648c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_ALPHA_SINT(uint32_t val)
11658c2ecf20Sopenharmony_ci{
11668c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_BLEND_ALPHA_SINT__SHIFT) & A4XX_RB_BLEND_ALPHA_SINT__MASK;
11678c2ecf20Sopenharmony_ci}
11688c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_ALPHA_FLOAT__MASK				0xffff0000
11698c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_ALPHA_FLOAT__SHIFT			16
11708c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_ALPHA_FLOAT(float val)
11718c2ecf20Sopenharmony_ci{
11728c2ecf20Sopenharmony_ci	return ((util_float_to_half(val)) << A4XX_RB_BLEND_ALPHA_FLOAT__SHIFT) & A4XX_RB_BLEND_ALPHA_FLOAT__MASK;
11738c2ecf20Sopenharmony_ci}
11748c2ecf20Sopenharmony_ci
11758c2ecf20Sopenharmony_ci#define REG_A4XX_RB_BLEND_ALPHA_F32				0x000020f7
11768c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_ALPHA_F32__MASK				0xffffffff
11778c2ecf20Sopenharmony_ci#define A4XX_RB_BLEND_ALPHA_F32__SHIFT				0
11788c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BLEND_ALPHA_F32(float val)
11798c2ecf20Sopenharmony_ci{
11808c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_RB_BLEND_ALPHA_F32__SHIFT) & A4XX_RB_BLEND_ALPHA_F32__MASK;
11818c2ecf20Sopenharmony_ci}
11828c2ecf20Sopenharmony_ci
11838c2ecf20Sopenharmony_ci#define REG_A4XX_RB_ALPHA_CONTROL				0x000020f8
11848c2ecf20Sopenharmony_ci#define A4XX_RB_ALPHA_CONTROL_ALPHA_REF__MASK			0x000000ff
11858c2ecf20Sopenharmony_ci#define A4XX_RB_ALPHA_CONTROL_ALPHA_REF__SHIFT			0
11868c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_ALPHA_CONTROL_ALPHA_REF(uint32_t val)
11878c2ecf20Sopenharmony_ci{
11888c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_ALPHA_CONTROL_ALPHA_REF__SHIFT) & A4XX_RB_ALPHA_CONTROL_ALPHA_REF__MASK;
11898c2ecf20Sopenharmony_ci}
11908c2ecf20Sopenharmony_ci#define A4XX_RB_ALPHA_CONTROL_ALPHA_TEST			0x00000100
11918c2ecf20Sopenharmony_ci#define A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC__MASK		0x00000e00
11928c2ecf20Sopenharmony_ci#define A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC__SHIFT		9
11938c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC(enum adreno_compare_func val)
11948c2ecf20Sopenharmony_ci{
11958c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC__SHIFT) & A4XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC__MASK;
11968c2ecf20Sopenharmony_ci}
11978c2ecf20Sopenharmony_ci
11988c2ecf20Sopenharmony_ci#define REG_A4XX_RB_FS_OUTPUT					0x000020f9
11998c2ecf20Sopenharmony_ci#define A4XX_RB_FS_OUTPUT_ENABLE_BLEND__MASK			0x000000ff
12008c2ecf20Sopenharmony_ci#define A4XX_RB_FS_OUTPUT_ENABLE_BLEND__SHIFT			0
12018c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_FS_OUTPUT_ENABLE_BLEND(uint32_t val)
12028c2ecf20Sopenharmony_ci{
12038c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_FS_OUTPUT_ENABLE_BLEND__SHIFT) & A4XX_RB_FS_OUTPUT_ENABLE_BLEND__MASK;
12048c2ecf20Sopenharmony_ci}
12058c2ecf20Sopenharmony_ci#define A4XX_RB_FS_OUTPUT_INDEPENDENT_BLEND			0x00000100
12068c2ecf20Sopenharmony_ci#define A4XX_RB_FS_OUTPUT_SAMPLE_MASK__MASK			0xffff0000
12078c2ecf20Sopenharmony_ci#define A4XX_RB_FS_OUTPUT_SAMPLE_MASK__SHIFT			16
12088c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_FS_OUTPUT_SAMPLE_MASK(uint32_t val)
12098c2ecf20Sopenharmony_ci{
12108c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_FS_OUTPUT_SAMPLE_MASK__SHIFT) & A4XX_RB_FS_OUTPUT_SAMPLE_MASK__MASK;
12118c2ecf20Sopenharmony_ci}
12128c2ecf20Sopenharmony_ci
12138c2ecf20Sopenharmony_ci#define REG_A4XX_RB_SAMPLE_COUNT_CONTROL			0x000020fa
12148c2ecf20Sopenharmony_ci#define A4XX_RB_SAMPLE_COUNT_CONTROL_COPY			0x00000002
12158c2ecf20Sopenharmony_ci#define A4XX_RB_SAMPLE_COUNT_CONTROL_ADDR__MASK			0xfffffffc
12168c2ecf20Sopenharmony_ci#define A4XX_RB_SAMPLE_COUNT_CONTROL_ADDR__SHIFT		2
12178c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_SAMPLE_COUNT_CONTROL_ADDR(uint32_t val)
12188c2ecf20Sopenharmony_ci{
12198c2ecf20Sopenharmony_ci	return ((val >> 2) << A4XX_RB_SAMPLE_COUNT_CONTROL_ADDR__SHIFT) & A4XX_RB_SAMPLE_COUNT_CONTROL_ADDR__MASK;
12208c2ecf20Sopenharmony_ci}
12218c2ecf20Sopenharmony_ci
12228c2ecf20Sopenharmony_ci#define REG_A4XX_RB_RENDER_COMPONENTS				0x000020fb
12238c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT0__MASK			0x0000000f
12248c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT0__SHIFT			0
12258c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT0(uint32_t val)
12268c2ecf20Sopenharmony_ci{
12278c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_RENDER_COMPONENTS_RT0__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT0__MASK;
12288c2ecf20Sopenharmony_ci}
12298c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT1__MASK			0x000000f0
12308c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT1__SHIFT			4
12318c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT1(uint32_t val)
12328c2ecf20Sopenharmony_ci{
12338c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_RENDER_COMPONENTS_RT1__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT1__MASK;
12348c2ecf20Sopenharmony_ci}
12358c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT2__MASK			0x00000f00
12368c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT2__SHIFT			8
12378c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT2(uint32_t val)
12388c2ecf20Sopenharmony_ci{
12398c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_RENDER_COMPONENTS_RT2__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT2__MASK;
12408c2ecf20Sopenharmony_ci}
12418c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT3__MASK			0x0000f000
12428c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT3__SHIFT			12
12438c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT3(uint32_t val)
12448c2ecf20Sopenharmony_ci{
12458c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_RENDER_COMPONENTS_RT3__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT3__MASK;
12468c2ecf20Sopenharmony_ci}
12478c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT4__MASK			0x000f0000
12488c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT4__SHIFT			16
12498c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT4(uint32_t val)
12508c2ecf20Sopenharmony_ci{
12518c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_RENDER_COMPONENTS_RT4__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT4__MASK;
12528c2ecf20Sopenharmony_ci}
12538c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT5__MASK			0x00f00000
12548c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT5__SHIFT			20
12558c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT5(uint32_t val)
12568c2ecf20Sopenharmony_ci{
12578c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_RENDER_COMPONENTS_RT5__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT5__MASK;
12588c2ecf20Sopenharmony_ci}
12598c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT6__MASK			0x0f000000
12608c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT6__SHIFT			24
12618c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT6(uint32_t val)
12628c2ecf20Sopenharmony_ci{
12638c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_RENDER_COMPONENTS_RT6__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT6__MASK;
12648c2ecf20Sopenharmony_ci}
12658c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT7__MASK			0xf0000000
12668c2ecf20Sopenharmony_ci#define A4XX_RB_RENDER_COMPONENTS_RT7__SHIFT			28
12678c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_RENDER_COMPONENTS_RT7(uint32_t val)
12688c2ecf20Sopenharmony_ci{
12698c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_RENDER_COMPONENTS_RT7__SHIFT) & A4XX_RB_RENDER_COMPONENTS_RT7__MASK;
12708c2ecf20Sopenharmony_ci}
12718c2ecf20Sopenharmony_ci
12728c2ecf20Sopenharmony_ci#define REG_A4XX_RB_COPY_CONTROL				0x000020fc
12738c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_CONTROL_MSAA_RESOLVE__MASK			0x00000003
12748c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_CONTROL_MSAA_RESOLVE__SHIFT		0
12758c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_CONTROL_MSAA_RESOLVE(enum a3xx_msaa_samples val)
12768c2ecf20Sopenharmony_ci{
12778c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_COPY_CONTROL_MSAA_RESOLVE__SHIFT) & A4XX_RB_COPY_CONTROL_MSAA_RESOLVE__MASK;
12788c2ecf20Sopenharmony_ci}
12798c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_CONTROL_MODE__MASK				0x00000070
12808c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_CONTROL_MODE__SHIFT			4
12818c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_CONTROL_MODE(enum adreno_rb_copy_control_mode val)
12828c2ecf20Sopenharmony_ci{
12838c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_COPY_CONTROL_MODE__SHIFT) & A4XX_RB_COPY_CONTROL_MODE__MASK;
12848c2ecf20Sopenharmony_ci}
12858c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_CONTROL_FASTCLEAR__MASK			0x00000f00
12868c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_CONTROL_FASTCLEAR__SHIFT			8
12878c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_CONTROL_FASTCLEAR(uint32_t val)
12888c2ecf20Sopenharmony_ci{
12898c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_COPY_CONTROL_FASTCLEAR__SHIFT) & A4XX_RB_COPY_CONTROL_FASTCLEAR__MASK;
12908c2ecf20Sopenharmony_ci}
12918c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_CONTROL_GMEM_BASE__MASK			0xffffc000
12928c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_CONTROL_GMEM_BASE__SHIFT			14
12938c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_CONTROL_GMEM_BASE(uint32_t val)
12948c2ecf20Sopenharmony_ci{
12958c2ecf20Sopenharmony_ci	return ((val >> 14) << A4XX_RB_COPY_CONTROL_GMEM_BASE__SHIFT) & A4XX_RB_COPY_CONTROL_GMEM_BASE__MASK;
12968c2ecf20Sopenharmony_ci}
12978c2ecf20Sopenharmony_ci
12988c2ecf20Sopenharmony_ci#define REG_A4XX_RB_COPY_DEST_BASE				0x000020fd
12998c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_BASE_BASE__MASK			0xffffffe0
13008c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_BASE_BASE__SHIFT			5
13018c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_DEST_BASE_BASE(uint32_t val)
13028c2ecf20Sopenharmony_ci{
13038c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_RB_COPY_DEST_BASE_BASE__SHIFT) & A4XX_RB_COPY_DEST_BASE_BASE__MASK;
13048c2ecf20Sopenharmony_ci}
13058c2ecf20Sopenharmony_ci
13068c2ecf20Sopenharmony_ci#define REG_A4XX_RB_COPY_DEST_PITCH				0x000020fe
13078c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_PITCH_PITCH__MASK			0xffffffff
13088c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_PITCH_PITCH__SHIFT			0
13098c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_DEST_PITCH_PITCH(uint32_t val)
13108c2ecf20Sopenharmony_ci{
13118c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_RB_COPY_DEST_PITCH_PITCH__SHIFT) & A4XX_RB_COPY_DEST_PITCH_PITCH__MASK;
13128c2ecf20Sopenharmony_ci}
13138c2ecf20Sopenharmony_ci
13148c2ecf20Sopenharmony_ci#define REG_A4XX_RB_COPY_DEST_INFO				0x000020ff
13158c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_FORMAT__MASK			0x000000fc
13168c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_FORMAT__SHIFT			2
13178c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_DEST_INFO_FORMAT(enum a4xx_color_fmt val)
13188c2ecf20Sopenharmony_ci{
13198c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_COPY_DEST_INFO_FORMAT__SHIFT) & A4XX_RB_COPY_DEST_INFO_FORMAT__MASK;
13208c2ecf20Sopenharmony_ci}
13218c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_SWAP__MASK			0x00000300
13228c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_SWAP__SHIFT			8
13238c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_DEST_INFO_SWAP(enum a3xx_color_swap val)
13248c2ecf20Sopenharmony_ci{
13258c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_COPY_DEST_INFO_SWAP__SHIFT) & A4XX_RB_COPY_DEST_INFO_SWAP__MASK;
13268c2ecf20Sopenharmony_ci}
13278c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_DITHER_MODE__MASK		0x00000c00
13288c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_DITHER_MODE__SHIFT		10
13298c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_DEST_INFO_DITHER_MODE(enum adreno_rb_dither_mode val)
13308c2ecf20Sopenharmony_ci{
13318c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_COPY_DEST_INFO_DITHER_MODE__SHIFT) & A4XX_RB_COPY_DEST_INFO_DITHER_MODE__MASK;
13328c2ecf20Sopenharmony_ci}
13338c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_COMPONENT_ENABLE__MASK		0x0003c000
13348c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_COMPONENT_ENABLE__SHIFT		14
13358c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_DEST_INFO_COMPONENT_ENABLE(uint32_t val)
13368c2ecf20Sopenharmony_ci{
13378c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_COPY_DEST_INFO_COMPONENT_ENABLE__SHIFT) & A4XX_RB_COPY_DEST_INFO_COMPONENT_ENABLE__MASK;
13388c2ecf20Sopenharmony_ci}
13398c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_ENDIAN__MASK			0x001c0000
13408c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_ENDIAN__SHIFT			18
13418c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_DEST_INFO_ENDIAN(enum adreno_rb_surface_endian val)
13428c2ecf20Sopenharmony_ci{
13438c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_COPY_DEST_INFO_ENDIAN__SHIFT) & A4XX_RB_COPY_DEST_INFO_ENDIAN__MASK;
13448c2ecf20Sopenharmony_ci}
13458c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_TILE__MASK			0x03000000
13468c2ecf20Sopenharmony_ci#define A4XX_RB_COPY_DEST_INFO_TILE__SHIFT			24
13478c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_COPY_DEST_INFO_TILE(enum a4xx_tile_mode val)
13488c2ecf20Sopenharmony_ci{
13498c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_COPY_DEST_INFO_TILE__SHIFT) & A4XX_RB_COPY_DEST_INFO_TILE__MASK;
13508c2ecf20Sopenharmony_ci}
13518c2ecf20Sopenharmony_ci
13528c2ecf20Sopenharmony_ci#define REG_A4XX_RB_FS_OUTPUT_REG				0x00002100
13538c2ecf20Sopenharmony_ci#define A4XX_RB_FS_OUTPUT_REG_MRT__MASK				0x0000000f
13548c2ecf20Sopenharmony_ci#define A4XX_RB_FS_OUTPUT_REG_MRT__SHIFT			0
13558c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_FS_OUTPUT_REG_MRT(uint32_t val)
13568c2ecf20Sopenharmony_ci{
13578c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_FS_OUTPUT_REG_MRT__SHIFT) & A4XX_RB_FS_OUTPUT_REG_MRT__MASK;
13588c2ecf20Sopenharmony_ci}
13598c2ecf20Sopenharmony_ci#define A4XX_RB_FS_OUTPUT_REG_FRAG_WRITES_Z			0x00000020
13608c2ecf20Sopenharmony_ci
13618c2ecf20Sopenharmony_ci#define REG_A4XX_RB_DEPTH_CONTROL				0x00002101
13628c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_CONTROL_FRAG_WRITES_Z			0x00000001
13638c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_CONTROL_Z_ENABLE				0x00000002
13648c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_CONTROL_Z_WRITE_ENABLE			0x00000004
13658c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_CONTROL_ZFUNC__MASK			0x00000070
13668c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_CONTROL_ZFUNC__SHIFT			4
13678c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_DEPTH_CONTROL_ZFUNC(enum adreno_compare_func val)
13688c2ecf20Sopenharmony_ci{
13698c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_DEPTH_CONTROL_ZFUNC__SHIFT) & A4XX_RB_DEPTH_CONTROL_ZFUNC__MASK;
13708c2ecf20Sopenharmony_ci}
13718c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_CONTROL_Z_CLAMP_ENABLE			0x00000080
13728c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_CONTROL_EARLY_Z_DISABLE			0x00010000
13738c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_CONTROL_FORCE_FRAGZ_TO_FS			0x00020000
13748c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_CONTROL_Z_TEST_ENABLE			0x80000000
13758c2ecf20Sopenharmony_ci
13768c2ecf20Sopenharmony_ci#define REG_A4XX_RB_DEPTH_CLEAR					0x00002102
13778c2ecf20Sopenharmony_ci
13788c2ecf20Sopenharmony_ci#define REG_A4XX_RB_DEPTH_INFO					0x00002103
13798c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_INFO_DEPTH_FORMAT__MASK			0x00000003
13808c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_INFO_DEPTH_FORMAT__SHIFT			0
13818c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_DEPTH_INFO_DEPTH_FORMAT(enum a4xx_depth_format val)
13828c2ecf20Sopenharmony_ci{
13838c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_DEPTH_INFO_DEPTH_FORMAT__SHIFT) & A4XX_RB_DEPTH_INFO_DEPTH_FORMAT__MASK;
13848c2ecf20Sopenharmony_ci}
13858c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_INFO_DEPTH_BASE__MASK			0xfffff000
13868c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_INFO_DEPTH_BASE__SHIFT			12
13878c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_DEPTH_INFO_DEPTH_BASE(uint32_t val)
13888c2ecf20Sopenharmony_ci{
13898c2ecf20Sopenharmony_ci	return ((val >> 12) << A4XX_RB_DEPTH_INFO_DEPTH_BASE__SHIFT) & A4XX_RB_DEPTH_INFO_DEPTH_BASE__MASK;
13908c2ecf20Sopenharmony_ci}
13918c2ecf20Sopenharmony_ci
13928c2ecf20Sopenharmony_ci#define REG_A4XX_RB_DEPTH_PITCH					0x00002104
13938c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_PITCH__MASK				0xffffffff
13948c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_PITCH__SHIFT				0
13958c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_DEPTH_PITCH(uint32_t val)
13968c2ecf20Sopenharmony_ci{
13978c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_RB_DEPTH_PITCH__SHIFT) & A4XX_RB_DEPTH_PITCH__MASK;
13988c2ecf20Sopenharmony_ci}
13998c2ecf20Sopenharmony_ci
14008c2ecf20Sopenharmony_ci#define REG_A4XX_RB_DEPTH_PITCH2				0x00002105
14018c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_PITCH2__MASK				0xffffffff
14028c2ecf20Sopenharmony_ci#define A4XX_RB_DEPTH_PITCH2__SHIFT				0
14038c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_DEPTH_PITCH2(uint32_t val)
14048c2ecf20Sopenharmony_ci{
14058c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_RB_DEPTH_PITCH2__SHIFT) & A4XX_RB_DEPTH_PITCH2__MASK;
14068c2ecf20Sopenharmony_ci}
14078c2ecf20Sopenharmony_ci
14088c2ecf20Sopenharmony_ci#define REG_A4XX_RB_STENCIL_CONTROL				0x00002106
14098c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_STENCIL_ENABLE			0x00000001
14108c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_STENCIL_ENABLE_BF		0x00000002
14118c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_STENCIL_READ			0x00000004
14128c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_FUNC__MASK			0x00000700
14138c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_FUNC__SHIFT			8
14148c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCIL_CONTROL_FUNC(enum adreno_compare_func val)
14158c2ecf20Sopenharmony_ci{
14168c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCIL_CONTROL_FUNC__SHIFT) & A4XX_RB_STENCIL_CONTROL_FUNC__MASK;
14178c2ecf20Sopenharmony_ci}
14188c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_FAIL__MASK			0x00003800
14198c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_FAIL__SHIFT			11
14208c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCIL_CONTROL_FAIL(enum adreno_stencil_op val)
14218c2ecf20Sopenharmony_ci{
14228c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCIL_CONTROL_FAIL__SHIFT) & A4XX_RB_STENCIL_CONTROL_FAIL__MASK;
14238c2ecf20Sopenharmony_ci}
14248c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_ZPASS__MASK			0x0001c000
14258c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_ZPASS__SHIFT			14
14268c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCIL_CONTROL_ZPASS(enum adreno_stencil_op val)
14278c2ecf20Sopenharmony_ci{
14288c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCIL_CONTROL_ZPASS__SHIFT) & A4XX_RB_STENCIL_CONTROL_ZPASS__MASK;
14298c2ecf20Sopenharmony_ci}
14308c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_ZFAIL__MASK			0x000e0000
14318c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_ZFAIL__SHIFT			17
14328c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCIL_CONTROL_ZFAIL(enum adreno_stencil_op val)
14338c2ecf20Sopenharmony_ci{
14348c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCIL_CONTROL_ZFAIL__SHIFT) & A4XX_RB_STENCIL_CONTROL_ZFAIL__MASK;
14358c2ecf20Sopenharmony_ci}
14368c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_FUNC_BF__MASK			0x00700000
14378c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_FUNC_BF__SHIFT			20
14388c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCIL_CONTROL_FUNC_BF(enum adreno_compare_func val)
14398c2ecf20Sopenharmony_ci{
14408c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCIL_CONTROL_FUNC_BF__SHIFT) & A4XX_RB_STENCIL_CONTROL_FUNC_BF__MASK;
14418c2ecf20Sopenharmony_ci}
14428c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_FAIL_BF__MASK			0x03800000
14438c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_FAIL_BF__SHIFT			23
14448c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCIL_CONTROL_FAIL_BF(enum adreno_stencil_op val)
14458c2ecf20Sopenharmony_ci{
14468c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCIL_CONTROL_FAIL_BF__SHIFT) & A4XX_RB_STENCIL_CONTROL_FAIL_BF__MASK;
14478c2ecf20Sopenharmony_ci}
14488c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_ZPASS_BF__MASK			0x1c000000
14498c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_ZPASS_BF__SHIFT			26
14508c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCIL_CONTROL_ZPASS_BF(enum adreno_stencil_op val)
14518c2ecf20Sopenharmony_ci{
14528c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCIL_CONTROL_ZPASS_BF__SHIFT) & A4XX_RB_STENCIL_CONTROL_ZPASS_BF__MASK;
14538c2ecf20Sopenharmony_ci}
14548c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_ZFAIL_BF__MASK			0xe0000000
14558c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL_ZFAIL_BF__SHIFT			29
14568c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCIL_CONTROL_ZFAIL_BF(enum adreno_stencil_op val)
14578c2ecf20Sopenharmony_ci{
14588c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCIL_CONTROL_ZFAIL_BF__SHIFT) & A4XX_RB_STENCIL_CONTROL_ZFAIL_BF__MASK;
14598c2ecf20Sopenharmony_ci}
14608c2ecf20Sopenharmony_ci
14618c2ecf20Sopenharmony_ci#define REG_A4XX_RB_STENCIL_CONTROL2				0x00002107
14628c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_CONTROL2_STENCIL_BUFFER			0x00000001
14638c2ecf20Sopenharmony_ci
14648c2ecf20Sopenharmony_ci#define REG_A4XX_RB_STENCIL_INFO				0x00002108
14658c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_INFO_SEPARATE_STENCIL			0x00000001
14668c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_INFO_STENCIL_BASE__MASK			0xfffff000
14678c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_INFO_STENCIL_BASE__SHIFT		12
14688c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCIL_INFO_STENCIL_BASE(uint32_t val)
14698c2ecf20Sopenharmony_ci{
14708c2ecf20Sopenharmony_ci	return ((val >> 12) << A4XX_RB_STENCIL_INFO_STENCIL_BASE__SHIFT) & A4XX_RB_STENCIL_INFO_STENCIL_BASE__MASK;
14718c2ecf20Sopenharmony_ci}
14728c2ecf20Sopenharmony_ci
14738c2ecf20Sopenharmony_ci#define REG_A4XX_RB_STENCIL_PITCH				0x00002109
14748c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_PITCH__MASK				0xffffffff
14758c2ecf20Sopenharmony_ci#define A4XX_RB_STENCIL_PITCH__SHIFT				0
14768c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCIL_PITCH(uint32_t val)
14778c2ecf20Sopenharmony_ci{
14788c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_RB_STENCIL_PITCH__SHIFT) & A4XX_RB_STENCIL_PITCH__MASK;
14798c2ecf20Sopenharmony_ci}
14808c2ecf20Sopenharmony_ci
14818c2ecf20Sopenharmony_ci#define REG_A4XX_RB_STENCILREFMASK				0x0000210b
14828c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_STENCILREF__MASK			0x000000ff
14838c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_STENCILREF__SHIFT		0
14848c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCILREFMASK_STENCILREF(uint32_t val)
14858c2ecf20Sopenharmony_ci{
14868c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCILREFMASK_STENCILREF__SHIFT) & A4XX_RB_STENCILREFMASK_STENCILREF__MASK;
14878c2ecf20Sopenharmony_ci}
14888c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_STENCILMASK__MASK		0x0000ff00
14898c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_STENCILMASK__SHIFT		8
14908c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCILREFMASK_STENCILMASK(uint32_t val)
14918c2ecf20Sopenharmony_ci{
14928c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCILREFMASK_STENCILMASK__SHIFT) & A4XX_RB_STENCILREFMASK_STENCILMASK__MASK;
14938c2ecf20Sopenharmony_ci}
14948c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_STENCILWRITEMASK__MASK		0x00ff0000
14958c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_STENCILWRITEMASK__SHIFT		16
14968c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCILREFMASK_STENCILWRITEMASK(uint32_t val)
14978c2ecf20Sopenharmony_ci{
14988c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCILREFMASK_STENCILWRITEMASK__SHIFT) & A4XX_RB_STENCILREFMASK_STENCILWRITEMASK__MASK;
14998c2ecf20Sopenharmony_ci}
15008c2ecf20Sopenharmony_ci
15018c2ecf20Sopenharmony_ci#define REG_A4XX_RB_STENCILREFMASK_BF				0x0000210c
15028c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_BF_STENCILREF__MASK		0x000000ff
15038c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_BF_STENCILREF__SHIFT		0
15048c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCILREFMASK_BF_STENCILREF(uint32_t val)
15058c2ecf20Sopenharmony_ci{
15068c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCILREFMASK_BF_STENCILREF__SHIFT) & A4XX_RB_STENCILREFMASK_BF_STENCILREF__MASK;
15078c2ecf20Sopenharmony_ci}
15088c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_BF_STENCILMASK__MASK		0x0000ff00
15098c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_BF_STENCILMASK__SHIFT		8
15108c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCILREFMASK_BF_STENCILMASK(uint32_t val)
15118c2ecf20Sopenharmony_ci{
15128c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCILREFMASK_BF_STENCILMASK__SHIFT) & A4XX_RB_STENCILREFMASK_BF_STENCILMASK__MASK;
15138c2ecf20Sopenharmony_ci}
15148c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__MASK	0x00ff0000
15158c2ecf20Sopenharmony_ci#define A4XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__SHIFT	16
15168c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK(uint32_t val)
15178c2ecf20Sopenharmony_ci{
15188c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__SHIFT) & A4XX_RB_STENCILREFMASK_BF_STENCILWRITEMASK__MASK;
15198c2ecf20Sopenharmony_ci}
15208c2ecf20Sopenharmony_ci
15218c2ecf20Sopenharmony_ci#define REG_A4XX_RB_BIN_OFFSET					0x0000210d
15228c2ecf20Sopenharmony_ci#define A4XX_RB_BIN_OFFSET_WINDOW_OFFSET_DISABLE		0x80000000
15238c2ecf20Sopenharmony_ci#define A4XX_RB_BIN_OFFSET_X__MASK				0x00007fff
15248c2ecf20Sopenharmony_ci#define A4XX_RB_BIN_OFFSET_X__SHIFT				0
15258c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BIN_OFFSET_X(uint32_t val)
15268c2ecf20Sopenharmony_ci{
15278c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_BIN_OFFSET_X__SHIFT) & A4XX_RB_BIN_OFFSET_X__MASK;
15288c2ecf20Sopenharmony_ci}
15298c2ecf20Sopenharmony_ci#define A4XX_RB_BIN_OFFSET_Y__MASK				0x7fff0000
15308c2ecf20Sopenharmony_ci#define A4XX_RB_BIN_OFFSET_Y__SHIFT				16
15318c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_RB_BIN_OFFSET_Y(uint32_t val)
15328c2ecf20Sopenharmony_ci{
15338c2ecf20Sopenharmony_ci	return ((val) << A4XX_RB_BIN_OFFSET_Y__SHIFT) & A4XX_RB_BIN_OFFSET_Y__MASK;
15348c2ecf20Sopenharmony_ci}
15358c2ecf20Sopenharmony_ci
15368c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RB_VPORT_Z_CLAMP(uint32_t i0) { return 0x00002120 + 0x2*i0; }
15378c2ecf20Sopenharmony_ci
15388c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RB_VPORT_Z_CLAMP_MIN(uint32_t i0) { return 0x00002120 + 0x2*i0; }
15398c2ecf20Sopenharmony_ci
15408c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RB_VPORT_Z_CLAMP_MAX(uint32_t i0) { return 0x00002121 + 0x2*i0; }
15418c2ecf20Sopenharmony_ci
15428c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_HW_VERSION				0x00000000
15438c2ecf20Sopenharmony_ci
15448c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_HW_CONFIGURATION				0x00000002
15458c2ecf20Sopenharmony_ci
15468c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_TP(uint32_t i0) { return 0x00000004 + 0x1*i0; }
15478c2ecf20Sopenharmony_ci
15488c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_TP_REG(uint32_t i0) { return 0x00000004 + 0x1*i0; }
15498c2ecf20Sopenharmony_ci
15508c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_TP(uint32_t i0) { return 0x00000008 + 0x1*i0; }
15518c2ecf20Sopenharmony_ci
15528c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_TP_REG(uint32_t i0) { return 0x00000008 + 0x1*i0; }
15538c2ecf20Sopenharmony_ci
15548c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_TP(uint32_t i0) { return 0x0000000c + 0x1*i0; }
15558c2ecf20Sopenharmony_ci
15568c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_TP_REG(uint32_t i0) { return 0x0000000c + 0x1*i0; }
15578c2ecf20Sopenharmony_ci
15588c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_TP(uint32_t i0) { return 0x00000010 + 0x1*i0; }
15598c2ecf20Sopenharmony_ci
15608c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_TP_REG(uint32_t i0) { return 0x00000010 + 0x1*i0; }
15618c2ecf20Sopenharmony_ci
15628c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_CTL_UCHE 				0x00000014
15638c2ecf20Sopenharmony_ci
15648c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_CTL2_UCHE				0x00000015
15658c2ecf20Sopenharmony_ci
15668c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_CTL3_UCHE				0x00000016
15678c2ecf20Sopenharmony_ci
15688c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_CTL4_UCHE				0x00000017
15698c2ecf20Sopenharmony_ci
15708c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_HYST_UCHE				0x00000018
15718c2ecf20Sopenharmony_ci
15728c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_DELAY_UCHE				0x00000019
15738c2ecf20Sopenharmony_ci
15748c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_MODE_GPC				0x0000001a
15758c2ecf20Sopenharmony_ci
15768c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_DELAY_GPC				0x0000001b
15778c2ecf20Sopenharmony_ci
15788c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_HYST_GPC				0x0000001c
15798c2ecf20Sopenharmony_ci
15808c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_CTL_TSE_RAS_RBBM			0x0000001d
15818c2ecf20Sopenharmony_ci
15828c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_HYST_TSE_RAS_RBBM			0x0000001e
15838c2ecf20Sopenharmony_ci
15848c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_DELAY_TSE_RAS_RBBM			0x0000001f
15858c2ecf20Sopenharmony_ci
15868c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_CTL					0x00000020
15878c2ecf20Sopenharmony_ci
15888c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_SP_HYST_CNT				0x00000021
15898c2ecf20Sopenharmony_ci
15908c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_SW_RESET_CMD				0x00000022
15918c2ecf20Sopenharmony_ci
15928c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_AHB_CTL0					0x00000023
15938c2ecf20Sopenharmony_ci
15948c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_AHB_CTL1					0x00000024
15958c2ecf20Sopenharmony_ci
15968c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_AHB_CMD					0x00000025
15978c2ecf20Sopenharmony_ci
15988c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_RB_SUB_BLOCK_SEL_CTL			0x00000026
15998c2ecf20Sopenharmony_ci
16008c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_RAM_ACC_63_32				0x00000028
16018c2ecf20Sopenharmony_ci
16028c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_WAIT_IDLE_CLOCKS_CTL			0x0000002b
16038c2ecf20Sopenharmony_ci
16048c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_INTERFACE_HANG_INT_CTL			0x0000002f
16058c2ecf20Sopenharmony_ci
16068c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_INTERFACE_HANG_MASK_CTL4			0x00000034
16078c2ecf20Sopenharmony_ci
16088c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_INT_CLEAR_CMD				0x00000036
16098c2ecf20Sopenharmony_ci
16108c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_INT_0_MASK				0x00000037
16118c2ecf20Sopenharmony_ci
16128c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_RBBM_CTL					0x0000003e
16138c2ecf20Sopenharmony_ci
16148c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_AHB_DEBUG_CTL				0x0000003f
16158c2ecf20Sopenharmony_ci
16168c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_VBIF_DEBUG_CTL				0x00000041
16178c2ecf20Sopenharmony_ci
16188c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_CTL2				0x00000042
16198c2ecf20Sopenharmony_ci
16208c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_BLOCK_SW_RESET_CMD			0x00000045
16218c2ecf20Sopenharmony_ci
16228c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_RESET_CYCLES				0x00000047
16238c2ecf20Sopenharmony_ci
16248c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_EXT_TRACE_BUS_CTL				0x00000049
16258c2ecf20Sopenharmony_ci
16268c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CFG_DEBBUS_SEL_A				0x0000004a
16278c2ecf20Sopenharmony_ci
16288c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CFG_DEBBUS_SEL_B				0x0000004b
16298c2ecf20Sopenharmony_ci
16308c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CFG_DEBBUS_SEL_C				0x0000004c
16318c2ecf20Sopenharmony_ci
16328c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CFG_DEBBUS_SEL_D				0x0000004d
16338c2ecf20Sopenharmony_ci
16348c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_POWER_CNTL_IP				0x00000098
16358c2ecf20Sopenharmony_ci#define A4XX_RBBM_POWER_CNTL_IP_SW_COLLAPSE			0x00000001
16368c2ecf20Sopenharmony_ci#define A4XX_RBBM_POWER_CNTL_IP_SP_TP_PWR_ON			0x00100000
16378c2ecf20Sopenharmony_ci
16388c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_0_LO				0x0000009c
16398c2ecf20Sopenharmony_ci
16408c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_0_HI				0x0000009d
16418c2ecf20Sopenharmony_ci
16428c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_1_LO				0x0000009e
16438c2ecf20Sopenharmony_ci
16448c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_1_HI				0x0000009f
16458c2ecf20Sopenharmony_ci
16468c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_2_LO				0x000000a0
16478c2ecf20Sopenharmony_ci
16488c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_2_HI				0x000000a1
16498c2ecf20Sopenharmony_ci
16508c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_3_LO				0x000000a2
16518c2ecf20Sopenharmony_ci
16528c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_3_HI				0x000000a3
16538c2ecf20Sopenharmony_ci
16548c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_4_LO				0x000000a4
16558c2ecf20Sopenharmony_ci
16568c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_4_HI				0x000000a5
16578c2ecf20Sopenharmony_ci
16588c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_5_LO				0x000000a6
16598c2ecf20Sopenharmony_ci
16608c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_5_HI				0x000000a7
16618c2ecf20Sopenharmony_ci
16628c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_6_LO				0x000000a8
16638c2ecf20Sopenharmony_ci
16648c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_6_HI				0x000000a9
16658c2ecf20Sopenharmony_ci
16668c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_7_LO				0x000000aa
16678c2ecf20Sopenharmony_ci
16688c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CP_7_HI				0x000000ab
16698c2ecf20Sopenharmony_ci
16708c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_0_LO				0x000000ac
16718c2ecf20Sopenharmony_ci
16728c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_0_HI				0x000000ad
16738c2ecf20Sopenharmony_ci
16748c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_1_LO				0x000000ae
16758c2ecf20Sopenharmony_ci
16768c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_1_HI				0x000000af
16778c2ecf20Sopenharmony_ci
16788c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_2_LO				0x000000b0
16798c2ecf20Sopenharmony_ci
16808c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_2_HI				0x000000b1
16818c2ecf20Sopenharmony_ci
16828c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_3_LO				0x000000b2
16838c2ecf20Sopenharmony_ci
16848c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_3_HI				0x000000b3
16858c2ecf20Sopenharmony_ci
16868c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_0_LO				0x000000b4
16878c2ecf20Sopenharmony_ci
16888c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_0_HI				0x000000b5
16898c2ecf20Sopenharmony_ci
16908c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_1_LO				0x000000b6
16918c2ecf20Sopenharmony_ci
16928c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_1_HI				0x000000b7
16938c2ecf20Sopenharmony_ci
16948c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_2_LO				0x000000b8
16958c2ecf20Sopenharmony_ci
16968c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_2_HI				0x000000b9
16978c2ecf20Sopenharmony_ci
16988c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_3_LO				0x000000ba
16998c2ecf20Sopenharmony_ci
17008c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_3_HI				0x000000bb
17018c2ecf20Sopenharmony_ci
17028c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_4_LO				0x000000bc
17038c2ecf20Sopenharmony_ci
17048c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_4_HI				0x000000bd
17058c2ecf20Sopenharmony_ci
17068c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_5_LO				0x000000be
17078c2ecf20Sopenharmony_ci
17088c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_5_HI				0x000000bf
17098c2ecf20Sopenharmony_ci
17108c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_6_LO				0x000000c0
17118c2ecf20Sopenharmony_ci
17128c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_6_HI				0x000000c1
17138c2ecf20Sopenharmony_ci
17148c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_7_LO				0x000000c2
17158c2ecf20Sopenharmony_ci
17168c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PC_7_HI				0x000000c3
17178c2ecf20Sopenharmony_ci
17188c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_0_LO				0x000000c4
17198c2ecf20Sopenharmony_ci
17208c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_0_HI				0x000000c5
17218c2ecf20Sopenharmony_ci
17228c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_1_LO				0x000000c6
17238c2ecf20Sopenharmony_ci
17248c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_1_HI				0x000000c7
17258c2ecf20Sopenharmony_ci
17268c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_2_LO				0x000000c8
17278c2ecf20Sopenharmony_ci
17288c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_2_HI				0x000000c9
17298c2ecf20Sopenharmony_ci
17308c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_3_LO				0x000000ca
17318c2ecf20Sopenharmony_ci
17328c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_3_HI				0x000000cb
17338c2ecf20Sopenharmony_ci
17348c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_4_LO				0x000000cc
17358c2ecf20Sopenharmony_ci
17368c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_4_HI				0x000000cd
17378c2ecf20Sopenharmony_ci
17388c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_5_LO				0x000000ce
17398c2ecf20Sopenharmony_ci
17408c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_5_HI				0x000000cf
17418c2ecf20Sopenharmony_ci
17428c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_6_LO				0x000000d0
17438c2ecf20Sopenharmony_ci
17448c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_6_HI				0x000000d1
17458c2ecf20Sopenharmony_ci
17468c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_7_LO				0x000000d2
17478c2ecf20Sopenharmony_ci
17488c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VFD_7_HI				0x000000d3
17498c2ecf20Sopenharmony_ci
17508c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_0_LO				0x000000d4
17518c2ecf20Sopenharmony_ci
17528c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_0_HI				0x000000d5
17538c2ecf20Sopenharmony_ci
17548c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_1_LO				0x000000d6
17558c2ecf20Sopenharmony_ci
17568c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_1_HI				0x000000d7
17578c2ecf20Sopenharmony_ci
17588c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_2_LO				0x000000d8
17598c2ecf20Sopenharmony_ci
17608c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_2_HI				0x000000d9
17618c2ecf20Sopenharmony_ci
17628c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_3_LO				0x000000da
17638c2ecf20Sopenharmony_ci
17648c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_3_HI				0x000000db
17658c2ecf20Sopenharmony_ci
17668c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_4_LO				0x000000dc
17678c2ecf20Sopenharmony_ci
17688c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_4_HI				0x000000dd
17698c2ecf20Sopenharmony_ci
17708c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_5_LO				0x000000de
17718c2ecf20Sopenharmony_ci
17728c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_5_HI				0x000000df
17738c2ecf20Sopenharmony_ci
17748c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_6_LO				0x000000e0
17758c2ecf20Sopenharmony_ci
17768c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_6_HI				0x000000e1
17778c2ecf20Sopenharmony_ci
17788c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_7_LO				0x000000e2
17798c2ecf20Sopenharmony_ci
17808c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_HLSQ_7_HI				0x000000e3
17818c2ecf20Sopenharmony_ci
17828c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VPC_0_LO				0x000000e4
17838c2ecf20Sopenharmony_ci
17848c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VPC_0_HI				0x000000e5
17858c2ecf20Sopenharmony_ci
17868c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VPC_1_LO				0x000000e6
17878c2ecf20Sopenharmony_ci
17888c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VPC_1_HI				0x000000e7
17898c2ecf20Sopenharmony_ci
17908c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VPC_2_LO				0x000000e8
17918c2ecf20Sopenharmony_ci
17928c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VPC_2_HI				0x000000e9
17938c2ecf20Sopenharmony_ci
17948c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VPC_3_LO				0x000000ea
17958c2ecf20Sopenharmony_ci
17968c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VPC_3_HI				0x000000eb
17978c2ecf20Sopenharmony_ci
17988c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CCU_0_LO				0x000000ec
17998c2ecf20Sopenharmony_ci
18008c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CCU_0_HI				0x000000ed
18018c2ecf20Sopenharmony_ci
18028c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CCU_1_LO				0x000000ee
18038c2ecf20Sopenharmony_ci
18048c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CCU_1_HI				0x000000ef
18058c2ecf20Sopenharmony_ci
18068c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CCU_2_LO				0x000000f0
18078c2ecf20Sopenharmony_ci
18088c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CCU_2_HI				0x000000f1
18098c2ecf20Sopenharmony_ci
18108c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CCU_3_LO				0x000000f2
18118c2ecf20Sopenharmony_ci
18128c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CCU_3_HI				0x000000f3
18138c2ecf20Sopenharmony_ci
18148c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TSE_0_LO				0x000000f4
18158c2ecf20Sopenharmony_ci
18168c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TSE_0_HI				0x000000f5
18178c2ecf20Sopenharmony_ci
18188c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TSE_1_LO				0x000000f6
18198c2ecf20Sopenharmony_ci
18208c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TSE_1_HI				0x000000f7
18218c2ecf20Sopenharmony_ci
18228c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TSE_2_LO				0x000000f8
18238c2ecf20Sopenharmony_ci
18248c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TSE_2_HI				0x000000f9
18258c2ecf20Sopenharmony_ci
18268c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TSE_3_LO				0x000000fa
18278c2ecf20Sopenharmony_ci
18288c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TSE_3_HI				0x000000fb
18298c2ecf20Sopenharmony_ci
18308c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RAS_0_LO				0x000000fc
18318c2ecf20Sopenharmony_ci
18328c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RAS_0_HI				0x000000fd
18338c2ecf20Sopenharmony_ci
18348c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RAS_1_LO				0x000000fe
18358c2ecf20Sopenharmony_ci
18368c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RAS_1_HI				0x000000ff
18378c2ecf20Sopenharmony_ci
18388c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RAS_2_LO				0x00000100
18398c2ecf20Sopenharmony_ci
18408c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RAS_2_HI				0x00000101
18418c2ecf20Sopenharmony_ci
18428c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RAS_3_LO				0x00000102
18438c2ecf20Sopenharmony_ci
18448c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RAS_3_HI				0x00000103
18458c2ecf20Sopenharmony_ci
18468c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_0_LO				0x00000104
18478c2ecf20Sopenharmony_ci
18488c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_0_HI				0x00000105
18498c2ecf20Sopenharmony_ci
18508c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_1_LO				0x00000106
18518c2ecf20Sopenharmony_ci
18528c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_1_HI				0x00000107
18538c2ecf20Sopenharmony_ci
18548c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_2_LO				0x00000108
18558c2ecf20Sopenharmony_ci
18568c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_2_HI				0x00000109
18578c2ecf20Sopenharmony_ci
18588c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_3_LO				0x0000010a
18598c2ecf20Sopenharmony_ci
18608c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_3_HI				0x0000010b
18618c2ecf20Sopenharmony_ci
18628c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_4_LO				0x0000010c
18638c2ecf20Sopenharmony_ci
18648c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_4_HI				0x0000010d
18658c2ecf20Sopenharmony_ci
18668c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_5_LO				0x0000010e
18678c2ecf20Sopenharmony_ci
18688c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_5_HI				0x0000010f
18698c2ecf20Sopenharmony_ci
18708c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_6_LO				0x00000110
18718c2ecf20Sopenharmony_ci
18728c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_6_HI				0x00000111
18738c2ecf20Sopenharmony_ci
18748c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_7_LO				0x00000112
18758c2ecf20Sopenharmony_ci
18768c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_UCHE_7_HI				0x00000113
18778c2ecf20Sopenharmony_ci
18788c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_0_LO				0x00000114
18798c2ecf20Sopenharmony_ci
18808c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_0_HI				0x00000115
18818c2ecf20Sopenharmony_ci
18828c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_1_LO				0x00000116
18838c2ecf20Sopenharmony_ci
18848c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_1_HI				0x00000117
18858c2ecf20Sopenharmony_ci
18868c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_2_LO				0x00000118
18878c2ecf20Sopenharmony_ci
18888c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_2_HI				0x00000119
18898c2ecf20Sopenharmony_ci
18908c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_3_LO				0x0000011a
18918c2ecf20Sopenharmony_ci
18928c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_3_HI				0x0000011b
18938c2ecf20Sopenharmony_ci
18948c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_4_LO				0x0000011c
18958c2ecf20Sopenharmony_ci
18968c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_4_HI				0x0000011d
18978c2ecf20Sopenharmony_ci
18988c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_5_LO				0x0000011e
18998c2ecf20Sopenharmony_ci
19008c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_5_HI				0x0000011f
19018c2ecf20Sopenharmony_ci
19028c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_6_LO				0x00000120
19038c2ecf20Sopenharmony_ci
19048c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_6_HI				0x00000121
19058c2ecf20Sopenharmony_ci
19068c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_7_LO				0x00000122
19078c2ecf20Sopenharmony_ci
19088c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_TP_7_HI				0x00000123
19098c2ecf20Sopenharmony_ci
19108c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_0_LO				0x00000124
19118c2ecf20Sopenharmony_ci
19128c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_0_HI				0x00000125
19138c2ecf20Sopenharmony_ci
19148c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_1_LO				0x00000126
19158c2ecf20Sopenharmony_ci
19168c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_1_HI				0x00000127
19178c2ecf20Sopenharmony_ci
19188c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_2_LO				0x00000128
19198c2ecf20Sopenharmony_ci
19208c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_2_HI				0x00000129
19218c2ecf20Sopenharmony_ci
19228c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_3_LO				0x0000012a
19238c2ecf20Sopenharmony_ci
19248c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_3_HI				0x0000012b
19258c2ecf20Sopenharmony_ci
19268c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_4_LO				0x0000012c
19278c2ecf20Sopenharmony_ci
19288c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_4_HI				0x0000012d
19298c2ecf20Sopenharmony_ci
19308c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_5_LO				0x0000012e
19318c2ecf20Sopenharmony_ci
19328c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_5_HI				0x0000012f
19338c2ecf20Sopenharmony_ci
19348c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_6_LO				0x00000130
19358c2ecf20Sopenharmony_ci
19368c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_6_HI				0x00000131
19378c2ecf20Sopenharmony_ci
19388c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_7_LO				0x00000132
19398c2ecf20Sopenharmony_ci
19408c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_7_HI				0x00000133
19418c2ecf20Sopenharmony_ci
19428c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_8_LO				0x00000134
19438c2ecf20Sopenharmony_ci
19448c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_8_HI				0x00000135
19458c2ecf20Sopenharmony_ci
19468c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_9_LO				0x00000136
19478c2ecf20Sopenharmony_ci
19488c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_9_HI				0x00000137
19498c2ecf20Sopenharmony_ci
19508c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_10_LO				0x00000138
19518c2ecf20Sopenharmony_ci
19528c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_10_HI				0x00000139
19538c2ecf20Sopenharmony_ci
19548c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_11_LO				0x0000013a
19558c2ecf20Sopenharmony_ci
19568c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_SP_11_HI				0x0000013b
19578c2ecf20Sopenharmony_ci
19588c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_0_LO				0x0000013c
19598c2ecf20Sopenharmony_ci
19608c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_0_HI				0x0000013d
19618c2ecf20Sopenharmony_ci
19628c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_1_LO				0x0000013e
19638c2ecf20Sopenharmony_ci
19648c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_1_HI				0x0000013f
19658c2ecf20Sopenharmony_ci
19668c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_2_LO				0x00000140
19678c2ecf20Sopenharmony_ci
19688c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_2_HI				0x00000141
19698c2ecf20Sopenharmony_ci
19708c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_3_LO				0x00000142
19718c2ecf20Sopenharmony_ci
19728c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_3_HI				0x00000143
19738c2ecf20Sopenharmony_ci
19748c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_4_LO				0x00000144
19758c2ecf20Sopenharmony_ci
19768c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_4_HI				0x00000145
19778c2ecf20Sopenharmony_ci
19788c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_5_LO				0x00000146
19798c2ecf20Sopenharmony_ci
19808c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_5_HI				0x00000147
19818c2ecf20Sopenharmony_ci
19828c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_6_LO				0x00000148
19838c2ecf20Sopenharmony_ci
19848c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_6_HI				0x00000149
19858c2ecf20Sopenharmony_ci
19868c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_7_LO				0x0000014a
19878c2ecf20Sopenharmony_ci
19888c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RB_7_HI				0x0000014b
19898c2ecf20Sopenharmony_ci
19908c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VSC_0_LO				0x0000014c
19918c2ecf20Sopenharmony_ci
19928c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VSC_0_HI				0x0000014d
19938c2ecf20Sopenharmony_ci
19948c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VSC_1_LO				0x0000014e
19958c2ecf20Sopenharmony_ci
19968c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_VSC_1_HI				0x0000014f
19978c2ecf20Sopenharmony_ci
19988c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PWR_0_LO				0x00000166
19998c2ecf20Sopenharmony_ci
20008c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PWR_0_HI				0x00000167
20018c2ecf20Sopenharmony_ci
20028c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PWR_1_LO				0x00000168
20038c2ecf20Sopenharmony_ci
20048c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_PWR_1_HI				0x00000169
20058c2ecf20Sopenharmony_ci
20068c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_ALWAYSON_COUNTER_LO			0x0000016e
20078c2ecf20Sopenharmony_ci
20088c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_ALWAYSON_COUNTER_HI			0x0000016f
20098c2ecf20Sopenharmony_ci
20108c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_SP(uint32_t i0) { return 0x00000068 + 0x1*i0; }
20118c2ecf20Sopenharmony_ci
20128c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_SP_REG(uint32_t i0) { return 0x00000068 + 0x1*i0; }
20138c2ecf20Sopenharmony_ci
20148c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_SP(uint32_t i0) { return 0x0000006c + 0x1*i0; }
20158c2ecf20Sopenharmony_ci
20168c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_SP_REG(uint32_t i0) { return 0x0000006c + 0x1*i0; }
20178c2ecf20Sopenharmony_ci
20188c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_SP(uint32_t i0) { return 0x00000070 + 0x1*i0; }
20198c2ecf20Sopenharmony_ci
20208c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_SP_REG(uint32_t i0) { return 0x00000070 + 0x1*i0; }
20218c2ecf20Sopenharmony_ci
20228c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_SP(uint32_t i0) { return 0x00000074 + 0x1*i0; }
20238c2ecf20Sopenharmony_ci
20248c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_SP_REG(uint32_t i0) { return 0x00000074 + 0x1*i0; }
20258c2ecf20Sopenharmony_ci
20268c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_RB(uint32_t i0) { return 0x00000078 + 0x1*i0; }
20278c2ecf20Sopenharmony_ci
20288c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_RB_REG(uint32_t i0) { return 0x00000078 + 0x1*i0; }
20298c2ecf20Sopenharmony_ci
20308c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_RB(uint32_t i0) { return 0x0000007c + 0x1*i0; }
20318c2ecf20Sopenharmony_ci
20328c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL2_RB_REG(uint32_t i0) { return 0x0000007c + 0x1*i0; }
20338c2ecf20Sopenharmony_ci
20348c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_MARB_CCU(uint32_t i0) { return 0x00000082 + 0x1*i0; }
20358c2ecf20Sopenharmony_ci
20368c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_CTL_MARB_CCU_REG(uint32_t i0) { return 0x00000082 + 0x1*i0; }
20378c2ecf20Sopenharmony_ci
20388c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_RB_MARB_CCU(uint32_t i0) { return 0x00000086 + 0x1*i0; }
20398c2ecf20Sopenharmony_ci
20408c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_HYST_RB_MARB_CCU_REG(uint32_t i0) { return 0x00000086 + 0x1*i0; }
20418c2ecf20Sopenharmony_ci
20428c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_HYST_COM_DCOM			0x00000080
20438c2ecf20Sopenharmony_ci
20448c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_CTL_COM_DCOM			0x00000081
20458c2ecf20Sopenharmony_ci
20468c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_CTL_HLSQ				0x0000008a
20478c2ecf20Sopenharmony_ci
20488c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_HYST_HLSQ				0x0000008b
20498c2ecf20Sopenharmony_ci
20508c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_DELAY_HLSQ				0x0000008c
20518c2ecf20Sopenharmony_ci
20528c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_DELAY_COM_DCOM			0x0000008d
20538c2ecf20Sopenharmony_ci
20548c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_RB_MARB_CCU_L1(uint32_t i0) { return 0x0000008e + 0x1*i0; }
20558c2ecf20Sopenharmony_ci
20568c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_RBBM_CLOCK_DELAY_RB_MARB_CCU_L1_REG(uint32_t i0) { return 0x0000008e + 0x1*i0; }
20578c2ecf20Sopenharmony_ci
20588c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_SP_REGFILE_SLEEP_CNTL_0			0x00000099
20598c2ecf20Sopenharmony_ci
20608c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_SP_REGFILE_SLEEP_CNTL_1			0x0000009a
20618c2ecf20Sopenharmony_ci
20628c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_CTL				0x00000170
20638c2ecf20Sopenharmony_ci
20648c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_LOAD_CMD0				0x00000171
20658c2ecf20Sopenharmony_ci
20668c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_LOAD_CMD1				0x00000172
20678c2ecf20Sopenharmony_ci
20688c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_LOAD_CMD2				0x00000173
20698c2ecf20Sopenharmony_ci
20708c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_LOAD_VALUE_LO			0x00000174
20718c2ecf20Sopenharmony_ci
20728c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_LOAD_VALUE_HI			0x00000175
20738c2ecf20Sopenharmony_ci
20748c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_SEL_0			0x00000176
20758c2ecf20Sopenharmony_ci
20768c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_SEL_1			0x00000177
20778c2ecf20Sopenharmony_ci
20788c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_SEL_2			0x00000178
20798c2ecf20Sopenharmony_ci
20808c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_PERFCTR_RBBM_SEL_3			0x00000179
20818c2ecf20Sopenharmony_ci
20828c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_GPU_BUSY_MASKED				0x0000017a
20838c2ecf20Sopenharmony_ci
20848c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_INT_0_STATUS				0x0000017d
20858c2ecf20Sopenharmony_ci
20868c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_CLOCK_STATUS				0x00000182
20878c2ecf20Sopenharmony_ci
20888c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_AHB_STATUS				0x00000189
20898c2ecf20Sopenharmony_ci
20908c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_AHB_ME_SPLIT_STATUS			0x0000018c
20918c2ecf20Sopenharmony_ci
20928c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_AHB_PFP_SPLIT_STATUS			0x0000018d
20938c2ecf20Sopenharmony_ci
20948c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_AHB_ERROR_STATUS				0x0000018f
20958c2ecf20Sopenharmony_ci
20968c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_STATUS					0x00000191
20978c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_HI_BUSY				0x00000001
20988c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_CP_ME_BUSY				0x00000002
20998c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_CP_PFP_BUSY				0x00000004
21008c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_CP_NRT_BUSY				0x00004000
21018c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_VBIF_BUSY				0x00008000
21028c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_TSE_BUSY				0x00010000
21038c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_RAS_BUSY				0x00020000
21048c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_RB_BUSY				0x00040000
21058c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_PC_DCALL_BUSY				0x00080000
21068c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_PC_VSD_BUSY				0x00100000
21078c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_VFD_BUSY				0x00200000
21088c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_VPC_BUSY				0x00400000
21098c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_UCHE_BUSY				0x00800000
21108c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_SP_BUSY				0x01000000
21118c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_TPL1_BUSY				0x02000000
21128c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_MARB_BUSY				0x04000000
21138c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_VSC_BUSY				0x08000000
21148c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_ARB_BUSY				0x10000000
21158c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_HLSQ_BUSY				0x20000000
21168c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_GPU_BUSY_NOHC				0x40000000
21178c2ecf20Sopenharmony_ci#define A4XX_RBBM_STATUS_GPU_BUSY				0x80000000
21188c2ecf20Sopenharmony_ci
21198c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_INTERFACE_RRDY_STATUS5			0x0000019f
21208c2ecf20Sopenharmony_ci
21218c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_POWER_STATUS				0x000001b0
21228c2ecf20Sopenharmony_ci#define A4XX_RBBM_POWER_STATUS_SP_TP_PWR_ON			0x00100000
21238c2ecf20Sopenharmony_ci
21248c2ecf20Sopenharmony_ci#define REG_A4XX_RBBM_WAIT_IDLE_CLOCKS_CTL2			0x000001b8
21258c2ecf20Sopenharmony_ci
21268c2ecf20Sopenharmony_ci#define REG_A4XX_CP_SCRATCH_UMASK				0x00000228
21278c2ecf20Sopenharmony_ci
21288c2ecf20Sopenharmony_ci#define REG_A4XX_CP_SCRATCH_ADDR				0x00000229
21298c2ecf20Sopenharmony_ci
21308c2ecf20Sopenharmony_ci#define REG_A4XX_CP_RB_BASE					0x00000200
21318c2ecf20Sopenharmony_ci
21328c2ecf20Sopenharmony_ci#define REG_A4XX_CP_RB_CNTL					0x00000201
21338c2ecf20Sopenharmony_ci
21348c2ecf20Sopenharmony_ci#define REG_A4XX_CP_RB_WPTR					0x00000205
21358c2ecf20Sopenharmony_ci
21368c2ecf20Sopenharmony_ci#define REG_A4XX_CP_RB_RPTR_ADDR				0x00000203
21378c2ecf20Sopenharmony_ci
21388c2ecf20Sopenharmony_ci#define REG_A4XX_CP_RB_RPTR					0x00000204
21398c2ecf20Sopenharmony_ci
21408c2ecf20Sopenharmony_ci#define REG_A4XX_CP_IB1_BASE					0x00000206
21418c2ecf20Sopenharmony_ci
21428c2ecf20Sopenharmony_ci#define REG_A4XX_CP_IB1_BUFSZ					0x00000207
21438c2ecf20Sopenharmony_ci
21448c2ecf20Sopenharmony_ci#define REG_A4XX_CP_IB2_BASE					0x00000208
21458c2ecf20Sopenharmony_ci
21468c2ecf20Sopenharmony_ci#define REG_A4XX_CP_IB2_BUFSZ					0x00000209
21478c2ecf20Sopenharmony_ci
21488c2ecf20Sopenharmony_ci#define REG_A4XX_CP_ME_NRT_ADDR					0x0000020c
21498c2ecf20Sopenharmony_ci
21508c2ecf20Sopenharmony_ci#define REG_A4XX_CP_ME_NRT_DATA					0x0000020d
21518c2ecf20Sopenharmony_ci
21528c2ecf20Sopenharmony_ci#define REG_A4XX_CP_ME_RB_DONE_DATA				0x00000217
21538c2ecf20Sopenharmony_ci
21548c2ecf20Sopenharmony_ci#define REG_A4XX_CP_QUEUE_THRESH2				0x00000219
21558c2ecf20Sopenharmony_ci
21568c2ecf20Sopenharmony_ci#define REG_A4XX_CP_MERCIU_SIZE					0x0000021b
21578c2ecf20Sopenharmony_ci
21588c2ecf20Sopenharmony_ci#define REG_A4XX_CP_ROQ_ADDR					0x0000021c
21598c2ecf20Sopenharmony_ci
21608c2ecf20Sopenharmony_ci#define REG_A4XX_CP_ROQ_DATA					0x0000021d
21618c2ecf20Sopenharmony_ci
21628c2ecf20Sopenharmony_ci#define REG_A4XX_CP_MEQ_ADDR					0x0000021e
21638c2ecf20Sopenharmony_ci
21648c2ecf20Sopenharmony_ci#define REG_A4XX_CP_MEQ_DATA					0x0000021f
21658c2ecf20Sopenharmony_ci
21668c2ecf20Sopenharmony_ci#define REG_A4XX_CP_MERCIU_ADDR					0x00000220
21678c2ecf20Sopenharmony_ci
21688c2ecf20Sopenharmony_ci#define REG_A4XX_CP_MERCIU_DATA					0x00000221
21698c2ecf20Sopenharmony_ci
21708c2ecf20Sopenharmony_ci#define REG_A4XX_CP_MERCIU_DATA2				0x00000222
21718c2ecf20Sopenharmony_ci
21728c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PFP_UCODE_ADDR				0x00000223
21738c2ecf20Sopenharmony_ci
21748c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PFP_UCODE_DATA				0x00000224
21758c2ecf20Sopenharmony_ci
21768c2ecf20Sopenharmony_ci#define REG_A4XX_CP_ME_RAM_WADDR				0x00000225
21778c2ecf20Sopenharmony_ci
21788c2ecf20Sopenharmony_ci#define REG_A4XX_CP_ME_RAM_RADDR				0x00000226
21798c2ecf20Sopenharmony_ci
21808c2ecf20Sopenharmony_ci#define REG_A4XX_CP_ME_RAM_DATA					0x00000227
21818c2ecf20Sopenharmony_ci
21828c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PREEMPT					0x0000022a
21838c2ecf20Sopenharmony_ci
21848c2ecf20Sopenharmony_ci#define REG_A4XX_CP_CNTL					0x0000022c
21858c2ecf20Sopenharmony_ci
21868c2ecf20Sopenharmony_ci#define REG_A4XX_CP_ME_CNTL					0x0000022d
21878c2ecf20Sopenharmony_ci
21888c2ecf20Sopenharmony_ci#define REG_A4XX_CP_DEBUG					0x0000022e
21898c2ecf20Sopenharmony_ci
21908c2ecf20Sopenharmony_ci#define REG_A4XX_CP_DEBUG_ECO_CONTROL				0x00000231
21918c2ecf20Sopenharmony_ci
21928c2ecf20Sopenharmony_ci#define REG_A4XX_CP_DRAW_STATE_ADDR				0x00000232
21938c2ecf20Sopenharmony_ci
21948c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_CP_PROTECT(uint32_t i0) { return 0x00000240 + 0x1*i0; }
21958c2ecf20Sopenharmony_ci
21968c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_CP_PROTECT_REG(uint32_t i0) { return 0x00000240 + 0x1*i0; }
21978c2ecf20Sopenharmony_ci#define A4XX_CP_PROTECT_REG_BASE_ADDR__MASK			0x0001ffff
21988c2ecf20Sopenharmony_ci#define A4XX_CP_PROTECT_REG_BASE_ADDR__SHIFT			0
21998c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_PROTECT_REG_BASE_ADDR(uint32_t val)
22008c2ecf20Sopenharmony_ci{
22018c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_PROTECT_REG_BASE_ADDR__SHIFT) & A4XX_CP_PROTECT_REG_BASE_ADDR__MASK;
22028c2ecf20Sopenharmony_ci}
22038c2ecf20Sopenharmony_ci#define A4XX_CP_PROTECT_REG_MASK_LEN__MASK			0x1f000000
22048c2ecf20Sopenharmony_ci#define A4XX_CP_PROTECT_REG_MASK_LEN__SHIFT			24
22058c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_PROTECT_REG_MASK_LEN(uint32_t val)
22068c2ecf20Sopenharmony_ci{
22078c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_PROTECT_REG_MASK_LEN__SHIFT) & A4XX_CP_PROTECT_REG_MASK_LEN__MASK;
22088c2ecf20Sopenharmony_ci}
22098c2ecf20Sopenharmony_ci#define A4XX_CP_PROTECT_REG_TRAP_WRITE__MASK			0x20000000
22108c2ecf20Sopenharmony_ci#define A4XX_CP_PROTECT_REG_TRAP_WRITE__SHIFT			29
22118c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_PROTECT_REG_TRAP_WRITE(uint32_t val)
22128c2ecf20Sopenharmony_ci{
22138c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_PROTECT_REG_TRAP_WRITE__SHIFT) & A4XX_CP_PROTECT_REG_TRAP_WRITE__MASK;
22148c2ecf20Sopenharmony_ci}
22158c2ecf20Sopenharmony_ci#define A4XX_CP_PROTECT_REG_TRAP_READ__MASK			0x40000000
22168c2ecf20Sopenharmony_ci#define A4XX_CP_PROTECT_REG_TRAP_READ__SHIFT			30
22178c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_PROTECT_REG_TRAP_READ(uint32_t val)
22188c2ecf20Sopenharmony_ci{
22198c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_PROTECT_REG_TRAP_READ__SHIFT) & A4XX_CP_PROTECT_REG_TRAP_READ__MASK;
22208c2ecf20Sopenharmony_ci}
22218c2ecf20Sopenharmony_ci
22228c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PROTECT_CTRL				0x00000250
22238c2ecf20Sopenharmony_ci
22248c2ecf20Sopenharmony_ci#define REG_A4XX_CP_ST_BASE					0x000004c0
22258c2ecf20Sopenharmony_ci
22268c2ecf20Sopenharmony_ci#define REG_A4XX_CP_STQ_AVAIL					0x000004ce
22278c2ecf20Sopenharmony_ci
22288c2ecf20Sopenharmony_ci#define REG_A4XX_CP_MERCIU_STAT					0x000004d0
22298c2ecf20Sopenharmony_ci
22308c2ecf20Sopenharmony_ci#define REG_A4XX_CP_WFI_PEND_CTR				0x000004d2
22318c2ecf20Sopenharmony_ci
22328c2ecf20Sopenharmony_ci#define REG_A4XX_CP_HW_FAULT					0x000004d8
22338c2ecf20Sopenharmony_ci
22348c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PROTECT_STATUS				0x000004da
22358c2ecf20Sopenharmony_ci
22368c2ecf20Sopenharmony_ci#define REG_A4XX_CP_EVENTS_IN_FLIGHT				0x000004dd
22378c2ecf20Sopenharmony_ci
22388c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PERFCTR_CP_SEL_0				0x00000500
22398c2ecf20Sopenharmony_ci
22408c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PERFCTR_CP_SEL_1				0x00000501
22418c2ecf20Sopenharmony_ci
22428c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PERFCTR_CP_SEL_2				0x00000502
22438c2ecf20Sopenharmony_ci
22448c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PERFCTR_CP_SEL_3				0x00000503
22458c2ecf20Sopenharmony_ci
22468c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PERFCTR_CP_SEL_4				0x00000504
22478c2ecf20Sopenharmony_ci
22488c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PERFCTR_CP_SEL_5				0x00000505
22498c2ecf20Sopenharmony_ci
22508c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PERFCTR_CP_SEL_6				0x00000506
22518c2ecf20Sopenharmony_ci
22528c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PERFCTR_CP_SEL_7				0x00000507
22538c2ecf20Sopenharmony_ci
22548c2ecf20Sopenharmony_ci#define REG_A4XX_CP_PERFCOMBINER_SELECT				0x0000050b
22558c2ecf20Sopenharmony_ci
22568c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_CP_SCRATCH(uint32_t i0) { return 0x00000578 + 0x1*i0; }
22578c2ecf20Sopenharmony_ci
22588c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_CP_SCRATCH_REG(uint32_t i0) { return 0x00000578 + 0x1*i0; }
22598c2ecf20Sopenharmony_ci
22608c2ecf20Sopenharmony_ci#define REG_A4XX_SP_VS_STATUS					0x00000ec0
22618c2ecf20Sopenharmony_ci
22628c2ecf20Sopenharmony_ci#define REG_A4XX_SP_MODE_CONTROL				0x00000ec3
22638c2ecf20Sopenharmony_ci
22648c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_0				0x00000ec4
22658c2ecf20Sopenharmony_ci
22668c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_1				0x00000ec5
22678c2ecf20Sopenharmony_ci
22688c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_2				0x00000ec6
22698c2ecf20Sopenharmony_ci
22708c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_3				0x00000ec7
22718c2ecf20Sopenharmony_ci
22728c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_4				0x00000ec8
22738c2ecf20Sopenharmony_ci
22748c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_5				0x00000ec9
22758c2ecf20Sopenharmony_ci
22768c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_6				0x00000eca
22778c2ecf20Sopenharmony_ci
22788c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_7				0x00000ecb
22798c2ecf20Sopenharmony_ci
22808c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_8				0x00000ecc
22818c2ecf20Sopenharmony_ci
22828c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_9				0x00000ecd
22838c2ecf20Sopenharmony_ci
22848c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_10				0x00000ece
22858c2ecf20Sopenharmony_ci
22868c2ecf20Sopenharmony_ci#define REG_A4XX_SP_PERFCTR_SP_SEL_11				0x00000ecf
22878c2ecf20Sopenharmony_ci
22888c2ecf20Sopenharmony_ci#define REG_A4XX_SP_SP_CTRL_REG					0x000022c0
22898c2ecf20Sopenharmony_ci#define A4XX_SP_SP_CTRL_REG_BINNING_PASS			0x00080000
22908c2ecf20Sopenharmony_ci
22918c2ecf20Sopenharmony_ci#define REG_A4XX_SP_INSTR_CACHE_CTRL				0x000022c1
22928c2ecf20Sopenharmony_ci#define A4XX_SP_INSTR_CACHE_CTRL_VS_BUFFER			0x00000080
22938c2ecf20Sopenharmony_ci#define A4XX_SP_INSTR_CACHE_CTRL_FS_BUFFER			0x00000100
22948c2ecf20Sopenharmony_ci#define A4XX_SP_INSTR_CACHE_CTRL_INSTR_BUFFER			0x00000400
22958c2ecf20Sopenharmony_ci
22968c2ecf20Sopenharmony_ci#define REG_A4XX_SP_VS_CTRL_REG0				0x000022c4
22978c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_THREADMODE__MASK			0x00000001
22988c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_THREADMODE__SHIFT			0
22998c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_CTRL_REG0_THREADMODE(enum a3xx_threadmode val)
23008c2ecf20Sopenharmony_ci{
23018c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_CTRL_REG0_THREADMODE__SHIFT) & A4XX_SP_VS_CTRL_REG0_THREADMODE__MASK;
23028c2ecf20Sopenharmony_ci}
23038c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_VARYING				0x00000002
23048c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_CACHEINVALID			0x00000004
23058c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT__MASK		0x000003f0
23068c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT__SHIFT		4
23078c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT(uint32_t val)
23088c2ecf20Sopenharmony_ci{
23098c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT__SHIFT) & A4XX_SP_VS_CTRL_REG0_HALFREGFOOTPRINT__MASK;
23108c2ecf20Sopenharmony_ci}
23118c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT__MASK		0x0000fc00
23128c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT__SHIFT		10
23138c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT(uint32_t val)
23148c2ecf20Sopenharmony_ci{
23158c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT__SHIFT) & A4XX_SP_VS_CTRL_REG0_FULLREGFOOTPRINT__MASK;
23168c2ecf20Sopenharmony_ci}
23178c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_INOUTREGOVERLAP__MASK		0x000c0000
23188c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_INOUTREGOVERLAP__SHIFT		18
23198c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_CTRL_REG0_INOUTREGOVERLAP(uint32_t val)
23208c2ecf20Sopenharmony_ci{
23218c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_CTRL_REG0_INOUTREGOVERLAP__SHIFT) & A4XX_SP_VS_CTRL_REG0_INOUTREGOVERLAP__MASK;
23228c2ecf20Sopenharmony_ci}
23238c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_THREADSIZE__MASK			0x00100000
23248c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_THREADSIZE__SHIFT			20
23258c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_CTRL_REG0_THREADSIZE(enum a3xx_threadsize val)
23268c2ecf20Sopenharmony_ci{
23278c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_CTRL_REG0_THREADSIZE__SHIFT) & A4XX_SP_VS_CTRL_REG0_THREADSIZE__MASK;
23288c2ecf20Sopenharmony_ci}
23298c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_SUPERTHREADMODE			0x00200000
23308c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG0_PIXLODENABLE			0x00400000
23318c2ecf20Sopenharmony_ci
23328c2ecf20Sopenharmony_ci#define REG_A4XX_SP_VS_CTRL_REG1				0x000022c5
23338c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG1_CONSTLENGTH__MASK			0x000000ff
23348c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG1_CONSTLENGTH__SHIFT			0
23358c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_CTRL_REG1_CONSTLENGTH(uint32_t val)
23368c2ecf20Sopenharmony_ci{
23378c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_CTRL_REG1_CONSTLENGTH__SHIFT) & A4XX_SP_VS_CTRL_REG1_CONSTLENGTH__MASK;
23388c2ecf20Sopenharmony_ci}
23398c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG1_INITIALOUTSTANDING__MASK		0x7f000000
23408c2ecf20Sopenharmony_ci#define A4XX_SP_VS_CTRL_REG1_INITIALOUTSTANDING__SHIFT		24
23418c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_CTRL_REG1_INITIALOUTSTANDING(uint32_t val)
23428c2ecf20Sopenharmony_ci{
23438c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_CTRL_REG1_INITIALOUTSTANDING__SHIFT) & A4XX_SP_VS_CTRL_REG1_INITIALOUTSTANDING__MASK;
23448c2ecf20Sopenharmony_ci}
23458c2ecf20Sopenharmony_ci
23468c2ecf20Sopenharmony_ci#define REG_A4XX_SP_VS_PARAM_REG				0x000022c6
23478c2ecf20Sopenharmony_ci#define A4XX_SP_VS_PARAM_REG_POSREGID__MASK			0x000000ff
23488c2ecf20Sopenharmony_ci#define A4XX_SP_VS_PARAM_REG_POSREGID__SHIFT			0
23498c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_PARAM_REG_POSREGID(uint32_t val)
23508c2ecf20Sopenharmony_ci{
23518c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_PARAM_REG_POSREGID__SHIFT) & A4XX_SP_VS_PARAM_REG_POSREGID__MASK;
23528c2ecf20Sopenharmony_ci}
23538c2ecf20Sopenharmony_ci#define A4XX_SP_VS_PARAM_REG_PSIZEREGID__MASK			0x0000ff00
23548c2ecf20Sopenharmony_ci#define A4XX_SP_VS_PARAM_REG_PSIZEREGID__SHIFT			8
23558c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_PARAM_REG_PSIZEREGID(uint32_t val)
23568c2ecf20Sopenharmony_ci{
23578c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_PARAM_REG_PSIZEREGID__SHIFT) & A4XX_SP_VS_PARAM_REG_PSIZEREGID__MASK;
23588c2ecf20Sopenharmony_ci}
23598c2ecf20Sopenharmony_ci#define A4XX_SP_VS_PARAM_REG_TOTALVSOUTVAR__MASK		0xfff00000
23608c2ecf20Sopenharmony_ci#define A4XX_SP_VS_PARAM_REG_TOTALVSOUTVAR__SHIFT		20
23618c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_PARAM_REG_TOTALVSOUTVAR(uint32_t val)
23628c2ecf20Sopenharmony_ci{
23638c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_PARAM_REG_TOTALVSOUTVAR__SHIFT) & A4XX_SP_VS_PARAM_REG_TOTALVSOUTVAR__MASK;
23648c2ecf20Sopenharmony_ci}
23658c2ecf20Sopenharmony_ci
23668c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_VS_OUT(uint32_t i0) { return 0x000022c7 + 0x1*i0; }
23678c2ecf20Sopenharmony_ci
23688c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_VS_OUT_REG(uint32_t i0) { return 0x000022c7 + 0x1*i0; }
23698c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OUT_REG_A_REGID__MASK			0x000001ff
23708c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OUT_REG_A_REGID__SHIFT			0
23718c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_OUT_REG_A_REGID(uint32_t val)
23728c2ecf20Sopenharmony_ci{
23738c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_OUT_REG_A_REGID__SHIFT) & A4XX_SP_VS_OUT_REG_A_REGID__MASK;
23748c2ecf20Sopenharmony_ci}
23758c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OUT_REG_A_COMPMASK__MASK			0x00001e00
23768c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OUT_REG_A_COMPMASK__SHIFT			9
23778c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_OUT_REG_A_COMPMASK(uint32_t val)
23788c2ecf20Sopenharmony_ci{
23798c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_OUT_REG_A_COMPMASK__SHIFT) & A4XX_SP_VS_OUT_REG_A_COMPMASK__MASK;
23808c2ecf20Sopenharmony_ci}
23818c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OUT_REG_B_REGID__MASK			0x01ff0000
23828c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OUT_REG_B_REGID__SHIFT			16
23838c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_OUT_REG_B_REGID(uint32_t val)
23848c2ecf20Sopenharmony_ci{
23858c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_OUT_REG_B_REGID__SHIFT) & A4XX_SP_VS_OUT_REG_B_REGID__MASK;
23868c2ecf20Sopenharmony_ci}
23878c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OUT_REG_B_COMPMASK__MASK			0x1e000000
23888c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OUT_REG_B_COMPMASK__SHIFT			25
23898c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_OUT_REG_B_COMPMASK(uint32_t val)
23908c2ecf20Sopenharmony_ci{
23918c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_OUT_REG_B_COMPMASK__SHIFT) & A4XX_SP_VS_OUT_REG_B_COMPMASK__MASK;
23928c2ecf20Sopenharmony_ci}
23938c2ecf20Sopenharmony_ci
23948c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_VS_VPC_DST(uint32_t i0) { return 0x000022d8 + 0x1*i0; }
23958c2ecf20Sopenharmony_ci
23968c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_VS_VPC_DST_REG(uint32_t i0) { return 0x000022d8 + 0x1*i0; }
23978c2ecf20Sopenharmony_ci#define A4XX_SP_VS_VPC_DST_REG_OUTLOC0__MASK			0x000000ff
23988c2ecf20Sopenharmony_ci#define A4XX_SP_VS_VPC_DST_REG_OUTLOC0__SHIFT			0
23998c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_VPC_DST_REG_OUTLOC0(uint32_t val)
24008c2ecf20Sopenharmony_ci{
24018c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_VPC_DST_REG_OUTLOC0__SHIFT) & A4XX_SP_VS_VPC_DST_REG_OUTLOC0__MASK;
24028c2ecf20Sopenharmony_ci}
24038c2ecf20Sopenharmony_ci#define A4XX_SP_VS_VPC_DST_REG_OUTLOC1__MASK			0x0000ff00
24048c2ecf20Sopenharmony_ci#define A4XX_SP_VS_VPC_DST_REG_OUTLOC1__SHIFT			8
24058c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_VPC_DST_REG_OUTLOC1(uint32_t val)
24068c2ecf20Sopenharmony_ci{
24078c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_VPC_DST_REG_OUTLOC1__SHIFT) & A4XX_SP_VS_VPC_DST_REG_OUTLOC1__MASK;
24088c2ecf20Sopenharmony_ci}
24098c2ecf20Sopenharmony_ci#define A4XX_SP_VS_VPC_DST_REG_OUTLOC2__MASK			0x00ff0000
24108c2ecf20Sopenharmony_ci#define A4XX_SP_VS_VPC_DST_REG_OUTLOC2__SHIFT			16
24118c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_VPC_DST_REG_OUTLOC2(uint32_t val)
24128c2ecf20Sopenharmony_ci{
24138c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_VPC_DST_REG_OUTLOC2__SHIFT) & A4XX_SP_VS_VPC_DST_REG_OUTLOC2__MASK;
24148c2ecf20Sopenharmony_ci}
24158c2ecf20Sopenharmony_ci#define A4XX_SP_VS_VPC_DST_REG_OUTLOC3__MASK			0xff000000
24168c2ecf20Sopenharmony_ci#define A4XX_SP_VS_VPC_DST_REG_OUTLOC3__SHIFT			24
24178c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_VPC_DST_REG_OUTLOC3(uint32_t val)
24188c2ecf20Sopenharmony_ci{
24198c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_VPC_DST_REG_OUTLOC3__SHIFT) & A4XX_SP_VS_VPC_DST_REG_OUTLOC3__MASK;
24208c2ecf20Sopenharmony_ci}
24218c2ecf20Sopenharmony_ci
24228c2ecf20Sopenharmony_ci#define REG_A4XX_SP_VS_OBJ_OFFSET_REG				0x000022e0
24238c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK	0x01ff0000
24248c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT	16
24258c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET(uint32_t val)
24268c2ecf20Sopenharmony_ci{
24278c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_SP_VS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK;
24288c2ecf20Sopenharmony_ci}
24298c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK		0xfe000000
24308c2ecf20Sopenharmony_ci#define A4XX_SP_VS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT	25
24318c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_VS_OBJ_OFFSET_REG_SHADEROBJOFFSET(uint32_t val)
24328c2ecf20Sopenharmony_ci{
24338c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_VS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT) & A4XX_SP_VS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK;
24348c2ecf20Sopenharmony_ci}
24358c2ecf20Sopenharmony_ci
24368c2ecf20Sopenharmony_ci#define REG_A4XX_SP_VS_OBJ_START				0x000022e1
24378c2ecf20Sopenharmony_ci
24388c2ecf20Sopenharmony_ci#define REG_A4XX_SP_VS_PVT_MEM_PARAM				0x000022e2
24398c2ecf20Sopenharmony_ci
24408c2ecf20Sopenharmony_ci#define REG_A4XX_SP_VS_PVT_MEM_ADDR				0x000022e3
24418c2ecf20Sopenharmony_ci
24428c2ecf20Sopenharmony_ci#define REG_A4XX_SP_VS_LENGTH_REG				0x000022e5
24438c2ecf20Sopenharmony_ci
24448c2ecf20Sopenharmony_ci#define REG_A4XX_SP_FS_CTRL_REG0				0x000022e8
24458c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_THREADMODE__MASK			0x00000001
24468c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_THREADMODE__SHIFT			0
24478c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_CTRL_REG0_THREADMODE(enum a3xx_threadmode val)
24488c2ecf20Sopenharmony_ci{
24498c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_CTRL_REG0_THREADMODE__SHIFT) & A4XX_SP_FS_CTRL_REG0_THREADMODE__MASK;
24508c2ecf20Sopenharmony_ci}
24518c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_VARYING				0x00000002
24528c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_CACHEINVALID			0x00000004
24538c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_HALFREGFOOTPRINT__MASK		0x000003f0
24548c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_HALFREGFOOTPRINT__SHIFT		4
24558c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_CTRL_REG0_HALFREGFOOTPRINT(uint32_t val)
24568c2ecf20Sopenharmony_ci{
24578c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_CTRL_REG0_HALFREGFOOTPRINT__SHIFT) & A4XX_SP_FS_CTRL_REG0_HALFREGFOOTPRINT__MASK;
24588c2ecf20Sopenharmony_ci}
24598c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT__MASK		0x0000fc00
24608c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT__SHIFT		10
24618c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT(uint32_t val)
24628c2ecf20Sopenharmony_ci{
24638c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT__SHIFT) & A4XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT__MASK;
24648c2ecf20Sopenharmony_ci}
24658c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_INOUTREGOVERLAP__MASK		0x000c0000
24668c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_INOUTREGOVERLAP__SHIFT		18
24678c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_CTRL_REG0_INOUTREGOVERLAP(uint32_t val)
24688c2ecf20Sopenharmony_ci{
24698c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_CTRL_REG0_INOUTREGOVERLAP__SHIFT) & A4XX_SP_FS_CTRL_REG0_INOUTREGOVERLAP__MASK;
24708c2ecf20Sopenharmony_ci}
24718c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_THREADSIZE__MASK			0x00100000
24728c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_THREADSIZE__SHIFT			20
24738c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_CTRL_REG0_THREADSIZE(enum a3xx_threadsize val)
24748c2ecf20Sopenharmony_ci{
24758c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_CTRL_REG0_THREADSIZE__SHIFT) & A4XX_SP_FS_CTRL_REG0_THREADSIZE__MASK;
24768c2ecf20Sopenharmony_ci}
24778c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_SUPERTHREADMODE			0x00200000
24788c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG0_PIXLODENABLE			0x00400000
24798c2ecf20Sopenharmony_ci
24808c2ecf20Sopenharmony_ci#define REG_A4XX_SP_FS_CTRL_REG1				0x000022e9
24818c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG1_CONSTLENGTH__MASK			0x000000ff
24828c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG1_CONSTLENGTH__SHIFT			0
24838c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_CTRL_REG1_CONSTLENGTH(uint32_t val)
24848c2ecf20Sopenharmony_ci{
24858c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_CTRL_REG1_CONSTLENGTH__SHIFT) & A4XX_SP_FS_CTRL_REG1_CONSTLENGTH__MASK;
24868c2ecf20Sopenharmony_ci}
24878c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG1_FACENESS				0x00080000
24888c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG1_VARYING				0x00100000
24898c2ecf20Sopenharmony_ci#define A4XX_SP_FS_CTRL_REG1_FRAGCOORD				0x00200000
24908c2ecf20Sopenharmony_ci
24918c2ecf20Sopenharmony_ci#define REG_A4XX_SP_FS_OBJ_OFFSET_REG				0x000022ea
24928c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK	0x01ff0000
24938c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT	16
24948c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET(uint32_t val)
24958c2ecf20Sopenharmony_ci{
24968c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_SP_FS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK;
24978c2ecf20Sopenharmony_ci}
24988c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK		0xfe000000
24998c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT	25
25008c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_OBJ_OFFSET_REG_SHADEROBJOFFSET(uint32_t val)
25018c2ecf20Sopenharmony_ci{
25028c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT) & A4XX_SP_FS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK;
25038c2ecf20Sopenharmony_ci}
25048c2ecf20Sopenharmony_ci
25058c2ecf20Sopenharmony_ci#define REG_A4XX_SP_FS_OBJ_START				0x000022eb
25068c2ecf20Sopenharmony_ci
25078c2ecf20Sopenharmony_ci#define REG_A4XX_SP_FS_PVT_MEM_PARAM				0x000022ec
25088c2ecf20Sopenharmony_ci
25098c2ecf20Sopenharmony_ci#define REG_A4XX_SP_FS_PVT_MEM_ADDR				0x000022ed
25108c2ecf20Sopenharmony_ci
25118c2ecf20Sopenharmony_ci#define REG_A4XX_SP_FS_LENGTH_REG				0x000022ef
25128c2ecf20Sopenharmony_ci
25138c2ecf20Sopenharmony_ci#define REG_A4XX_SP_FS_OUTPUT_REG				0x000022f0
25148c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OUTPUT_REG_MRT__MASK				0x0000000f
25158c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OUTPUT_REG_MRT__SHIFT			0
25168c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_OUTPUT_REG_MRT(uint32_t val)
25178c2ecf20Sopenharmony_ci{
25188c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_OUTPUT_REG_MRT__SHIFT) & A4XX_SP_FS_OUTPUT_REG_MRT__MASK;
25198c2ecf20Sopenharmony_ci}
25208c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OUTPUT_REG_DEPTH_ENABLE			0x00000080
25218c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OUTPUT_REG_DEPTH_REGID__MASK			0x0000ff00
25228c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OUTPUT_REG_DEPTH_REGID__SHIFT		8
25238c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_OUTPUT_REG_DEPTH_REGID(uint32_t val)
25248c2ecf20Sopenharmony_ci{
25258c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_OUTPUT_REG_DEPTH_REGID__SHIFT) & A4XX_SP_FS_OUTPUT_REG_DEPTH_REGID__MASK;
25268c2ecf20Sopenharmony_ci}
25278c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OUTPUT_REG_SAMPLEMASK_REGID__MASK		0xff000000
25288c2ecf20Sopenharmony_ci#define A4XX_SP_FS_OUTPUT_REG_SAMPLEMASK_REGID__SHIFT		24
25298c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_OUTPUT_REG_SAMPLEMASK_REGID(uint32_t val)
25308c2ecf20Sopenharmony_ci{
25318c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_OUTPUT_REG_SAMPLEMASK_REGID__SHIFT) & A4XX_SP_FS_OUTPUT_REG_SAMPLEMASK_REGID__MASK;
25328c2ecf20Sopenharmony_ci}
25338c2ecf20Sopenharmony_ci
25348c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_FS_MRT(uint32_t i0) { return 0x000022f1 + 0x1*i0; }
25358c2ecf20Sopenharmony_ci
25368c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_FS_MRT_REG(uint32_t i0) { return 0x000022f1 + 0x1*i0; }
25378c2ecf20Sopenharmony_ci#define A4XX_SP_FS_MRT_REG_REGID__MASK				0x000000ff
25388c2ecf20Sopenharmony_ci#define A4XX_SP_FS_MRT_REG_REGID__SHIFT				0
25398c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_MRT_REG_REGID(uint32_t val)
25408c2ecf20Sopenharmony_ci{
25418c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_MRT_REG_REGID__SHIFT) & A4XX_SP_FS_MRT_REG_REGID__MASK;
25428c2ecf20Sopenharmony_ci}
25438c2ecf20Sopenharmony_ci#define A4XX_SP_FS_MRT_REG_HALF_PRECISION			0x00000100
25448c2ecf20Sopenharmony_ci#define A4XX_SP_FS_MRT_REG_MRTFORMAT__MASK			0x0003f000
25458c2ecf20Sopenharmony_ci#define A4XX_SP_FS_MRT_REG_MRTFORMAT__SHIFT			12
25468c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_FS_MRT_REG_MRTFORMAT(enum a4xx_color_fmt val)
25478c2ecf20Sopenharmony_ci{
25488c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_FS_MRT_REG_MRTFORMAT__SHIFT) & A4XX_SP_FS_MRT_REG_MRTFORMAT__MASK;
25498c2ecf20Sopenharmony_ci}
25508c2ecf20Sopenharmony_ci#define A4XX_SP_FS_MRT_REG_COLOR_SRGB				0x00040000
25518c2ecf20Sopenharmony_ci
25528c2ecf20Sopenharmony_ci#define REG_A4XX_SP_CS_CTRL_REG0				0x00002300
25538c2ecf20Sopenharmony_ci
25548c2ecf20Sopenharmony_ci#define REG_A4XX_SP_CS_OBJ_OFFSET_REG				0x00002301
25558c2ecf20Sopenharmony_ci
25568c2ecf20Sopenharmony_ci#define REG_A4XX_SP_CS_OBJ_START				0x00002302
25578c2ecf20Sopenharmony_ci
25588c2ecf20Sopenharmony_ci#define REG_A4XX_SP_CS_PVT_MEM_PARAM				0x00002303
25598c2ecf20Sopenharmony_ci
25608c2ecf20Sopenharmony_ci#define REG_A4XX_SP_CS_PVT_MEM_ADDR				0x00002304
25618c2ecf20Sopenharmony_ci
25628c2ecf20Sopenharmony_ci#define REG_A4XX_SP_CS_PVT_MEM_SIZE				0x00002305
25638c2ecf20Sopenharmony_ci
25648c2ecf20Sopenharmony_ci#define REG_A4XX_SP_CS_LENGTH_REG				0x00002306
25658c2ecf20Sopenharmony_ci
25668c2ecf20Sopenharmony_ci#define REG_A4XX_SP_HS_OBJ_OFFSET_REG				0x0000230d
25678c2ecf20Sopenharmony_ci#define A4XX_SP_HS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK	0x01ff0000
25688c2ecf20Sopenharmony_ci#define A4XX_SP_HS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT	16
25698c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_HS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET(uint32_t val)
25708c2ecf20Sopenharmony_ci{
25718c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_HS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_SP_HS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK;
25728c2ecf20Sopenharmony_ci}
25738c2ecf20Sopenharmony_ci#define A4XX_SP_HS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK		0xfe000000
25748c2ecf20Sopenharmony_ci#define A4XX_SP_HS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT	25
25758c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_HS_OBJ_OFFSET_REG_SHADEROBJOFFSET(uint32_t val)
25768c2ecf20Sopenharmony_ci{
25778c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_HS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT) & A4XX_SP_HS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK;
25788c2ecf20Sopenharmony_ci}
25798c2ecf20Sopenharmony_ci
25808c2ecf20Sopenharmony_ci#define REG_A4XX_SP_HS_OBJ_START				0x0000230e
25818c2ecf20Sopenharmony_ci
25828c2ecf20Sopenharmony_ci#define REG_A4XX_SP_HS_PVT_MEM_PARAM				0x0000230f
25838c2ecf20Sopenharmony_ci
25848c2ecf20Sopenharmony_ci#define REG_A4XX_SP_HS_PVT_MEM_ADDR				0x00002310
25858c2ecf20Sopenharmony_ci
25868c2ecf20Sopenharmony_ci#define REG_A4XX_SP_HS_LENGTH_REG				0x00002312
25878c2ecf20Sopenharmony_ci
25888c2ecf20Sopenharmony_ci#define REG_A4XX_SP_DS_PARAM_REG				0x0000231a
25898c2ecf20Sopenharmony_ci#define A4XX_SP_DS_PARAM_REG_POSREGID__MASK			0x000000ff
25908c2ecf20Sopenharmony_ci#define A4XX_SP_DS_PARAM_REG_POSREGID__SHIFT			0
25918c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_PARAM_REG_POSREGID(uint32_t val)
25928c2ecf20Sopenharmony_ci{
25938c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_PARAM_REG_POSREGID__SHIFT) & A4XX_SP_DS_PARAM_REG_POSREGID__MASK;
25948c2ecf20Sopenharmony_ci}
25958c2ecf20Sopenharmony_ci#define A4XX_SP_DS_PARAM_REG_TOTALGSOUTVAR__MASK		0xfff00000
25968c2ecf20Sopenharmony_ci#define A4XX_SP_DS_PARAM_REG_TOTALGSOUTVAR__SHIFT		20
25978c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_PARAM_REG_TOTALGSOUTVAR(uint32_t val)
25988c2ecf20Sopenharmony_ci{
25998c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_PARAM_REG_TOTALGSOUTVAR__SHIFT) & A4XX_SP_DS_PARAM_REG_TOTALGSOUTVAR__MASK;
26008c2ecf20Sopenharmony_ci}
26018c2ecf20Sopenharmony_ci
26028c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_DS_OUT(uint32_t i0) { return 0x0000231b + 0x1*i0; }
26038c2ecf20Sopenharmony_ci
26048c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_DS_OUT_REG(uint32_t i0) { return 0x0000231b + 0x1*i0; }
26058c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OUT_REG_A_REGID__MASK			0x000001ff
26068c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OUT_REG_A_REGID__SHIFT			0
26078c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_OUT_REG_A_REGID(uint32_t val)
26088c2ecf20Sopenharmony_ci{
26098c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_OUT_REG_A_REGID__SHIFT) & A4XX_SP_DS_OUT_REG_A_REGID__MASK;
26108c2ecf20Sopenharmony_ci}
26118c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OUT_REG_A_COMPMASK__MASK			0x00001e00
26128c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OUT_REG_A_COMPMASK__SHIFT			9
26138c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_OUT_REG_A_COMPMASK(uint32_t val)
26148c2ecf20Sopenharmony_ci{
26158c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_OUT_REG_A_COMPMASK__SHIFT) & A4XX_SP_DS_OUT_REG_A_COMPMASK__MASK;
26168c2ecf20Sopenharmony_ci}
26178c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OUT_REG_B_REGID__MASK			0x01ff0000
26188c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OUT_REG_B_REGID__SHIFT			16
26198c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_OUT_REG_B_REGID(uint32_t val)
26208c2ecf20Sopenharmony_ci{
26218c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_OUT_REG_B_REGID__SHIFT) & A4XX_SP_DS_OUT_REG_B_REGID__MASK;
26228c2ecf20Sopenharmony_ci}
26238c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OUT_REG_B_COMPMASK__MASK			0x1e000000
26248c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OUT_REG_B_COMPMASK__SHIFT			25
26258c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_OUT_REG_B_COMPMASK(uint32_t val)
26268c2ecf20Sopenharmony_ci{
26278c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_OUT_REG_B_COMPMASK__SHIFT) & A4XX_SP_DS_OUT_REG_B_COMPMASK__MASK;
26288c2ecf20Sopenharmony_ci}
26298c2ecf20Sopenharmony_ci
26308c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_DS_VPC_DST(uint32_t i0) { return 0x0000232c + 0x1*i0; }
26318c2ecf20Sopenharmony_ci
26328c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_DS_VPC_DST_REG(uint32_t i0) { return 0x0000232c + 0x1*i0; }
26338c2ecf20Sopenharmony_ci#define A4XX_SP_DS_VPC_DST_REG_OUTLOC0__MASK			0x000000ff
26348c2ecf20Sopenharmony_ci#define A4XX_SP_DS_VPC_DST_REG_OUTLOC0__SHIFT			0
26358c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_VPC_DST_REG_OUTLOC0(uint32_t val)
26368c2ecf20Sopenharmony_ci{
26378c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_VPC_DST_REG_OUTLOC0__SHIFT) & A4XX_SP_DS_VPC_DST_REG_OUTLOC0__MASK;
26388c2ecf20Sopenharmony_ci}
26398c2ecf20Sopenharmony_ci#define A4XX_SP_DS_VPC_DST_REG_OUTLOC1__MASK			0x0000ff00
26408c2ecf20Sopenharmony_ci#define A4XX_SP_DS_VPC_DST_REG_OUTLOC1__SHIFT			8
26418c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_VPC_DST_REG_OUTLOC1(uint32_t val)
26428c2ecf20Sopenharmony_ci{
26438c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_VPC_DST_REG_OUTLOC1__SHIFT) & A4XX_SP_DS_VPC_DST_REG_OUTLOC1__MASK;
26448c2ecf20Sopenharmony_ci}
26458c2ecf20Sopenharmony_ci#define A4XX_SP_DS_VPC_DST_REG_OUTLOC2__MASK			0x00ff0000
26468c2ecf20Sopenharmony_ci#define A4XX_SP_DS_VPC_DST_REG_OUTLOC2__SHIFT			16
26478c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_VPC_DST_REG_OUTLOC2(uint32_t val)
26488c2ecf20Sopenharmony_ci{
26498c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_VPC_DST_REG_OUTLOC2__SHIFT) & A4XX_SP_DS_VPC_DST_REG_OUTLOC2__MASK;
26508c2ecf20Sopenharmony_ci}
26518c2ecf20Sopenharmony_ci#define A4XX_SP_DS_VPC_DST_REG_OUTLOC3__MASK			0xff000000
26528c2ecf20Sopenharmony_ci#define A4XX_SP_DS_VPC_DST_REG_OUTLOC3__SHIFT			24
26538c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_VPC_DST_REG_OUTLOC3(uint32_t val)
26548c2ecf20Sopenharmony_ci{
26558c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_VPC_DST_REG_OUTLOC3__SHIFT) & A4XX_SP_DS_VPC_DST_REG_OUTLOC3__MASK;
26568c2ecf20Sopenharmony_ci}
26578c2ecf20Sopenharmony_ci
26588c2ecf20Sopenharmony_ci#define REG_A4XX_SP_DS_OBJ_OFFSET_REG				0x00002334
26598c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK	0x01ff0000
26608c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT	16
26618c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET(uint32_t val)
26628c2ecf20Sopenharmony_ci{
26638c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_SP_DS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK;
26648c2ecf20Sopenharmony_ci}
26658c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK		0xfe000000
26668c2ecf20Sopenharmony_ci#define A4XX_SP_DS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT	25
26678c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_DS_OBJ_OFFSET_REG_SHADEROBJOFFSET(uint32_t val)
26688c2ecf20Sopenharmony_ci{
26698c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_DS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT) & A4XX_SP_DS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK;
26708c2ecf20Sopenharmony_ci}
26718c2ecf20Sopenharmony_ci
26728c2ecf20Sopenharmony_ci#define REG_A4XX_SP_DS_OBJ_START				0x00002335
26738c2ecf20Sopenharmony_ci
26748c2ecf20Sopenharmony_ci#define REG_A4XX_SP_DS_PVT_MEM_PARAM				0x00002336
26758c2ecf20Sopenharmony_ci
26768c2ecf20Sopenharmony_ci#define REG_A4XX_SP_DS_PVT_MEM_ADDR				0x00002337
26778c2ecf20Sopenharmony_ci
26788c2ecf20Sopenharmony_ci#define REG_A4XX_SP_DS_LENGTH_REG				0x00002339
26798c2ecf20Sopenharmony_ci
26808c2ecf20Sopenharmony_ci#define REG_A4XX_SP_GS_PARAM_REG				0x00002341
26818c2ecf20Sopenharmony_ci#define A4XX_SP_GS_PARAM_REG_POSREGID__MASK			0x000000ff
26828c2ecf20Sopenharmony_ci#define A4XX_SP_GS_PARAM_REG_POSREGID__SHIFT			0
26838c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_PARAM_REG_POSREGID(uint32_t val)
26848c2ecf20Sopenharmony_ci{
26858c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_PARAM_REG_POSREGID__SHIFT) & A4XX_SP_GS_PARAM_REG_POSREGID__MASK;
26868c2ecf20Sopenharmony_ci}
26878c2ecf20Sopenharmony_ci#define A4XX_SP_GS_PARAM_REG_PRIMREGID__MASK			0x0000ff00
26888c2ecf20Sopenharmony_ci#define A4XX_SP_GS_PARAM_REG_PRIMREGID__SHIFT			8
26898c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_PARAM_REG_PRIMREGID(uint32_t val)
26908c2ecf20Sopenharmony_ci{
26918c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_PARAM_REG_PRIMREGID__SHIFT) & A4XX_SP_GS_PARAM_REG_PRIMREGID__MASK;
26928c2ecf20Sopenharmony_ci}
26938c2ecf20Sopenharmony_ci#define A4XX_SP_GS_PARAM_REG_TOTALGSOUTVAR__MASK		0xfff00000
26948c2ecf20Sopenharmony_ci#define A4XX_SP_GS_PARAM_REG_TOTALGSOUTVAR__SHIFT		20
26958c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_PARAM_REG_TOTALGSOUTVAR(uint32_t val)
26968c2ecf20Sopenharmony_ci{
26978c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_PARAM_REG_TOTALGSOUTVAR__SHIFT) & A4XX_SP_GS_PARAM_REG_TOTALGSOUTVAR__MASK;
26988c2ecf20Sopenharmony_ci}
26998c2ecf20Sopenharmony_ci
27008c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_GS_OUT(uint32_t i0) { return 0x00002342 + 0x1*i0; }
27018c2ecf20Sopenharmony_ci
27028c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_GS_OUT_REG(uint32_t i0) { return 0x00002342 + 0x1*i0; }
27038c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OUT_REG_A_REGID__MASK			0x000001ff
27048c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OUT_REG_A_REGID__SHIFT			0
27058c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_OUT_REG_A_REGID(uint32_t val)
27068c2ecf20Sopenharmony_ci{
27078c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_OUT_REG_A_REGID__SHIFT) & A4XX_SP_GS_OUT_REG_A_REGID__MASK;
27088c2ecf20Sopenharmony_ci}
27098c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OUT_REG_A_COMPMASK__MASK			0x00001e00
27108c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OUT_REG_A_COMPMASK__SHIFT			9
27118c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_OUT_REG_A_COMPMASK(uint32_t val)
27128c2ecf20Sopenharmony_ci{
27138c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_OUT_REG_A_COMPMASK__SHIFT) & A4XX_SP_GS_OUT_REG_A_COMPMASK__MASK;
27148c2ecf20Sopenharmony_ci}
27158c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OUT_REG_B_REGID__MASK			0x01ff0000
27168c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OUT_REG_B_REGID__SHIFT			16
27178c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_OUT_REG_B_REGID(uint32_t val)
27188c2ecf20Sopenharmony_ci{
27198c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_OUT_REG_B_REGID__SHIFT) & A4XX_SP_GS_OUT_REG_B_REGID__MASK;
27208c2ecf20Sopenharmony_ci}
27218c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OUT_REG_B_COMPMASK__MASK			0x1e000000
27228c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OUT_REG_B_COMPMASK__SHIFT			25
27238c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_OUT_REG_B_COMPMASK(uint32_t val)
27248c2ecf20Sopenharmony_ci{
27258c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_OUT_REG_B_COMPMASK__SHIFT) & A4XX_SP_GS_OUT_REG_B_COMPMASK__MASK;
27268c2ecf20Sopenharmony_ci}
27278c2ecf20Sopenharmony_ci
27288c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_GS_VPC_DST(uint32_t i0) { return 0x00002353 + 0x1*i0; }
27298c2ecf20Sopenharmony_ci
27308c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_SP_GS_VPC_DST_REG(uint32_t i0) { return 0x00002353 + 0x1*i0; }
27318c2ecf20Sopenharmony_ci#define A4XX_SP_GS_VPC_DST_REG_OUTLOC0__MASK			0x000000ff
27328c2ecf20Sopenharmony_ci#define A4XX_SP_GS_VPC_DST_REG_OUTLOC0__SHIFT			0
27338c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_VPC_DST_REG_OUTLOC0(uint32_t val)
27348c2ecf20Sopenharmony_ci{
27358c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_VPC_DST_REG_OUTLOC0__SHIFT) & A4XX_SP_GS_VPC_DST_REG_OUTLOC0__MASK;
27368c2ecf20Sopenharmony_ci}
27378c2ecf20Sopenharmony_ci#define A4XX_SP_GS_VPC_DST_REG_OUTLOC1__MASK			0x0000ff00
27388c2ecf20Sopenharmony_ci#define A4XX_SP_GS_VPC_DST_REG_OUTLOC1__SHIFT			8
27398c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_VPC_DST_REG_OUTLOC1(uint32_t val)
27408c2ecf20Sopenharmony_ci{
27418c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_VPC_DST_REG_OUTLOC1__SHIFT) & A4XX_SP_GS_VPC_DST_REG_OUTLOC1__MASK;
27428c2ecf20Sopenharmony_ci}
27438c2ecf20Sopenharmony_ci#define A4XX_SP_GS_VPC_DST_REG_OUTLOC2__MASK			0x00ff0000
27448c2ecf20Sopenharmony_ci#define A4XX_SP_GS_VPC_DST_REG_OUTLOC2__SHIFT			16
27458c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_VPC_DST_REG_OUTLOC2(uint32_t val)
27468c2ecf20Sopenharmony_ci{
27478c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_VPC_DST_REG_OUTLOC2__SHIFT) & A4XX_SP_GS_VPC_DST_REG_OUTLOC2__MASK;
27488c2ecf20Sopenharmony_ci}
27498c2ecf20Sopenharmony_ci#define A4XX_SP_GS_VPC_DST_REG_OUTLOC3__MASK			0xff000000
27508c2ecf20Sopenharmony_ci#define A4XX_SP_GS_VPC_DST_REG_OUTLOC3__SHIFT			24
27518c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_VPC_DST_REG_OUTLOC3(uint32_t val)
27528c2ecf20Sopenharmony_ci{
27538c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_VPC_DST_REG_OUTLOC3__SHIFT) & A4XX_SP_GS_VPC_DST_REG_OUTLOC3__MASK;
27548c2ecf20Sopenharmony_ci}
27558c2ecf20Sopenharmony_ci
27568c2ecf20Sopenharmony_ci#define REG_A4XX_SP_GS_OBJ_OFFSET_REG				0x0000235b
27578c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK	0x01ff0000
27588c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT	16
27598c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET(uint32_t val)
27608c2ecf20Sopenharmony_ci{
27618c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_SP_GS_OBJ_OFFSET_REG_CONSTOBJECTOFFSET__MASK;
27628c2ecf20Sopenharmony_ci}
27638c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK		0xfe000000
27648c2ecf20Sopenharmony_ci#define A4XX_SP_GS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT	25
27658c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SP_GS_OBJ_OFFSET_REG_SHADEROBJOFFSET(uint32_t val)
27668c2ecf20Sopenharmony_ci{
27678c2ecf20Sopenharmony_ci	return ((val) << A4XX_SP_GS_OBJ_OFFSET_REG_SHADEROBJOFFSET__SHIFT) & A4XX_SP_GS_OBJ_OFFSET_REG_SHADEROBJOFFSET__MASK;
27688c2ecf20Sopenharmony_ci}
27698c2ecf20Sopenharmony_ci
27708c2ecf20Sopenharmony_ci#define REG_A4XX_SP_GS_OBJ_START				0x0000235c
27718c2ecf20Sopenharmony_ci
27728c2ecf20Sopenharmony_ci#define REG_A4XX_SP_GS_PVT_MEM_PARAM				0x0000235d
27738c2ecf20Sopenharmony_ci
27748c2ecf20Sopenharmony_ci#define REG_A4XX_SP_GS_PVT_MEM_ADDR				0x0000235e
27758c2ecf20Sopenharmony_ci
27768c2ecf20Sopenharmony_ci#define REG_A4XX_SP_GS_LENGTH_REG				0x00002360
27778c2ecf20Sopenharmony_ci
27788c2ecf20Sopenharmony_ci#define REG_A4XX_VPC_DEBUG_RAM_SEL				0x00000e60
27798c2ecf20Sopenharmony_ci
27808c2ecf20Sopenharmony_ci#define REG_A4XX_VPC_DEBUG_RAM_READ				0x00000e61
27818c2ecf20Sopenharmony_ci
27828c2ecf20Sopenharmony_ci#define REG_A4XX_VPC_DEBUG_ECO_CONTROL				0x00000e64
27838c2ecf20Sopenharmony_ci
27848c2ecf20Sopenharmony_ci#define REG_A4XX_VPC_PERFCTR_VPC_SEL_0				0x00000e65
27858c2ecf20Sopenharmony_ci
27868c2ecf20Sopenharmony_ci#define REG_A4XX_VPC_PERFCTR_VPC_SEL_1				0x00000e66
27878c2ecf20Sopenharmony_ci
27888c2ecf20Sopenharmony_ci#define REG_A4XX_VPC_PERFCTR_VPC_SEL_2				0x00000e67
27898c2ecf20Sopenharmony_ci
27908c2ecf20Sopenharmony_ci#define REG_A4XX_VPC_PERFCTR_VPC_SEL_3				0x00000e68
27918c2ecf20Sopenharmony_ci
27928c2ecf20Sopenharmony_ci#define REG_A4XX_VPC_ATTR					0x00002140
27938c2ecf20Sopenharmony_ci#define A4XX_VPC_ATTR_TOTALATTR__MASK				0x000001ff
27948c2ecf20Sopenharmony_ci#define A4XX_VPC_ATTR_TOTALATTR__SHIFT				0
27958c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VPC_ATTR_TOTALATTR(uint32_t val)
27968c2ecf20Sopenharmony_ci{
27978c2ecf20Sopenharmony_ci	return ((val) << A4XX_VPC_ATTR_TOTALATTR__SHIFT) & A4XX_VPC_ATTR_TOTALATTR__MASK;
27988c2ecf20Sopenharmony_ci}
27998c2ecf20Sopenharmony_ci#define A4XX_VPC_ATTR_PSIZE					0x00000200
28008c2ecf20Sopenharmony_ci#define A4XX_VPC_ATTR_THRDASSIGN__MASK				0x00003000
28018c2ecf20Sopenharmony_ci#define A4XX_VPC_ATTR_THRDASSIGN__SHIFT				12
28028c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VPC_ATTR_THRDASSIGN(uint32_t val)
28038c2ecf20Sopenharmony_ci{
28048c2ecf20Sopenharmony_ci	return ((val) << A4XX_VPC_ATTR_THRDASSIGN__SHIFT) & A4XX_VPC_ATTR_THRDASSIGN__MASK;
28058c2ecf20Sopenharmony_ci}
28068c2ecf20Sopenharmony_ci#define A4XX_VPC_ATTR_ENABLE					0x02000000
28078c2ecf20Sopenharmony_ci
28088c2ecf20Sopenharmony_ci#define REG_A4XX_VPC_PACK					0x00002141
28098c2ecf20Sopenharmony_ci#define A4XX_VPC_PACK_NUMBYPASSVAR__MASK			0x000000ff
28108c2ecf20Sopenharmony_ci#define A4XX_VPC_PACK_NUMBYPASSVAR__SHIFT			0
28118c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VPC_PACK_NUMBYPASSVAR(uint32_t val)
28128c2ecf20Sopenharmony_ci{
28138c2ecf20Sopenharmony_ci	return ((val) << A4XX_VPC_PACK_NUMBYPASSVAR__SHIFT) & A4XX_VPC_PACK_NUMBYPASSVAR__MASK;
28148c2ecf20Sopenharmony_ci}
28158c2ecf20Sopenharmony_ci#define A4XX_VPC_PACK_NUMFPNONPOSVAR__MASK			0x0000ff00
28168c2ecf20Sopenharmony_ci#define A4XX_VPC_PACK_NUMFPNONPOSVAR__SHIFT			8
28178c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VPC_PACK_NUMFPNONPOSVAR(uint32_t val)
28188c2ecf20Sopenharmony_ci{
28198c2ecf20Sopenharmony_ci	return ((val) << A4XX_VPC_PACK_NUMFPNONPOSVAR__SHIFT) & A4XX_VPC_PACK_NUMFPNONPOSVAR__MASK;
28208c2ecf20Sopenharmony_ci}
28218c2ecf20Sopenharmony_ci#define A4XX_VPC_PACK_NUMNONPOSVSVAR__MASK			0x00ff0000
28228c2ecf20Sopenharmony_ci#define A4XX_VPC_PACK_NUMNONPOSVSVAR__SHIFT			16
28238c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VPC_PACK_NUMNONPOSVSVAR(uint32_t val)
28248c2ecf20Sopenharmony_ci{
28258c2ecf20Sopenharmony_ci	return ((val) << A4XX_VPC_PACK_NUMNONPOSVSVAR__SHIFT) & A4XX_VPC_PACK_NUMNONPOSVSVAR__MASK;
28268c2ecf20Sopenharmony_ci}
28278c2ecf20Sopenharmony_ci
28288c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VPC_VARYING_INTERP(uint32_t i0) { return 0x00002142 + 0x1*i0; }
28298c2ecf20Sopenharmony_ci
28308c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VPC_VARYING_INTERP_MODE(uint32_t i0) { return 0x00002142 + 0x1*i0; }
28318c2ecf20Sopenharmony_ci
28328c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VPC_VARYING_PS_REPL(uint32_t i0) { return 0x0000214a + 0x1*i0; }
28338c2ecf20Sopenharmony_ci
28348c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VPC_VARYING_PS_REPL_MODE(uint32_t i0) { return 0x0000214a + 0x1*i0; }
28358c2ecf20Sopenharmony_ci
28368c2ecf20Sopenharmony_ci#define REG_A4XX_VPC_SO_FLUSH_WADDR_3				0x0000216e
28378c2ecf20Sopenharmony_ci
28388c2ecf20Sopenharmony_ci#define REG_A4XX_VSC_BIN_SIZE					0x00000c00
28398c2ecf20Sopenharmony_ci#define A4XX_VSC_BIN_SIZE_WIDTH__MASK				0x0000001f
28408c2ecf20Sopenharmony_ci#define A4XX_VSC_BIN_SIZE_WIDTH__SHIFT				0
28418c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VSC_BIN_SIZE_WIDTH(uint32_t val)
28428c2ecf20Sopenharmony_ci{
28438c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_VSC_BIN_SIZE_WIDTH__SHIFT) & A4XX_VSC_BIN_SIZE_WIDTH__MASK;
28448c2ecf20Sopenharmony_ci}
28458c2ecf20Sopenharmony_ci#define A4XX_VSC_BIN_SIZE_HEIGHT__MASK				0x000003e0
28468c2ecf20Sopenharmony_ci#define A4XX_VSC_BIN_SIZE_HEIGHT__SHIFT				5
28478c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VSC_BIN_SIZE_HEIGHT(uint32_t val)
28488c2ecf20Sopenharmony_ci{
28498c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_VSC_BIN_SIZE_HEIGHT__SHIFT) & A4XX_VSC_BIN_SIZE_HEIGHT__MASK;
28508c2ecf20Sopenharmony_ci}
28518c2ecf20Sopenharmony_ci
28528c2ecf20Sopenharmony_ci#define REG_A4XX_VSC_SIZE_ADDRESS				0x00000c01
28538c2ecf20Sopenharmony_ci
28548c2ecf20Sopenharmony_ci#define REG_A4XX_VSC_SIZE_ADDRESS2				0x00000c02
28558c2ecf20Sopenharmony_ci
28568c2ecf20Sopenharmony_ci#define REG_A4XX_VSC_DEBUG_ECO_CONTROL				0x00000c03
28578c2ecf20Sopenharmony_ci
28588c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VSC_PIPE_CONFIG(uint32_t i0) { return 0x00000c08 + 0x1*i0; }
28598c2ecf20Sopenharmony_ci
28608c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VSC_PIPE_CONFIG_REG(uint32_t i0) { return 0x00000c08 + 0x1*i0; }
28618c2ecf20Sopenharmony_ci#define A4XX_VSC_PIPE_CONFIG_REG_X__MASK			0x000003ff
28628c2ecf20Sopenharmony_ci#define A4XX_VSC_PIPE_CONFIG_REG_X__SHIFT			0
28638c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VSC_PIPE_CONFIG_REG_X(uint32_t val)
28648c2ecf20Sopenharmony_ci{
28658c2ecf20Sopenharmony_ci	return ((val) << A4XX_VSC_PIPE_CONFIG_REG_X__SHIFT) & A4XX_VSC_PIPE_CONFIG_REG_X__MASK;
28668c2ecf20Sopenharmony_ci}
28678c2ecf20Sopenharmony_ci#define A4XX_VSC_PIPE_CONFIG_REG_Y__MASK			0x000ffc00
28688c2ecf20Sopenharmony_ci#define A4XX_VSC_PIPE_CONFIG_REG_Y__SHIFT			10
28698c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VSC_PIPE_CONFIG_REG_Y(uint32_t val)
28708c2ecf20Sopenharmony_ci{
28718c2ecf20Sopenharmony_ci	return ((val) << A4XX_VSC_PIPE_CONFIG_REG_Y__SHIFT) & A4XX_VSC_PIPE_CONFIG_REG_Y__MASK;
28728c2ecf20Sopenharmony_ci}
28738c2ecf20Sopenharmony_ci#define A4XX_VSC_PIPE_CONFIG_REG_W__MASK			0x00f00000
28748c2ecf20Sopenharmony_ci#define A4XX_VSC_PIPE_CONFIG_REG_W__SHIFT			20
28758c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VSC_PIPE_CONFIG_REG_W(uint32_t val)
28768c2ecf20Sopenharmony_ci{
28778c2ecf20Sopenharmony_ci	return ((val) << A4XX_VSC_PIPE_CONFIG_REG_W__SHIFT) & A4XX_VSC_PIPE_CONFIG_REG_W__MASK;
28788c2ecf20Sopenharmony_ci}
28798c2ecf20Sopenharmony_ci#define A4XX_VSC_PIPE_CONFIG_REG_H__MASK			0x0f000000
28808c2ecf20Sopenharmony_ci#define A4XX_VSC_PIPE_CONFIG_REG_H__SHIFT			24
28818c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VSC_PIPE_CONFIG_REG_H(uint32_t val)
28828c2ecf20Sopenharmony_ci{
28838c2ecf20Sopenharmony_ci	return ((val) << A4XX_VSC_PIPE_CONFIG_REG_H__SHIFT) & A4XX_VSC_PIPE_CONFIG_REG_H__MASK;
28848c2ecf20Sopenharmony_ci}
28858c2ecf20Sopenharmony_ci
28868c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VSC_PIPE_DATA_ADDRESS(uint32_t i0) { return 0x00000c10 + 0x1*i0; }
28878c2ecf20Sopenharmony_ci
28888c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VSC_PIPE_DATA_ADDRESS_REG(uint32_t i0) { return 0x00000c10 + 0x1*i0; }
28898c2ecf20Sopenharmony_ci
28908c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VSC_PIPE_DATA_LENGTH(uint32_t i0) { return 0x00000c18 + 0x1*i0; }
28918c2ecf20Sopenharmony_ci
28928c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VSC_PIPE_DATA_LENGTH_REG(uint32_t i0) { return 0x00000c18 + 0x1*i0; }
28938c2ecf20Sopenharmony_ci
28948c2ecf20Sopenharmony_ci#define REG_A4XX_VSC_PIPE_PARTIAL_POSN_1			0x00000c41
28958c2ecf20Sopenharmony_ci
28968c2ecf20Sopenharmony_ci#define REG_A4XX_VSC_PERFCTR_VSC_SEL_0				0x00000c50
28978c2ecf20Sopenharmony_ci
28988c2ecf20Sopenharmony_ci#define REG_A4XX_VSC_PERFCTR_VSC_SEL_1				0x00000c51
28998c2ecf20Sopenharmony_ci
29008c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_DEBUG_CONTROL				0x00000e40
29018c2ecf20Sopenharmony_ci
29028c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_PERFCTR_VFD_SEL_0				0x00000e43
29038c2ecf20Sopenharmony_ci
29048c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_PERFCTR_VFD_SEL_1				0x00000e44
29058c2ecf20Sopenharmony_ci
29068c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_PERFCTR_VFD_SEL_2				0x00000e45
29078c2ecf20Sopenharmony_ci
29088c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_PERFCTR_VFD_SEL_3				0x00000e46
29098c2ecf20Sopenharmony_ci
29108c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_PERFCTR_VFD_SEL_4				0x00000e47
29118c2ecf20Sopenharmony_ci
29128c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_PERFCTR_VFD_SEL_5				0x00000e48
29138c2ecf20Sopenharmony_ci
29148c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_PERFCTR_VFD_SEL_6				0x00000e49
29158c2ecf20Sopenharmony_ci
29168c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_PERFCTR_VFD_SEL_7				0x00000e4a
29178c2ecf20Sopenharmony_ci
29188c2ecf20Sopenharmony_ci#define REG_A4XX_VGT_CL_INITIATOR				0x000021d0
29198c2ecf20Sopenharmony_ci
29208c2ecf20Sopenharmony_ci#define REG_A4XX_VGT_EVENT_INITIATOR				0x000021d9
29218c2ecf20Sopenharmony_ci
29228c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_CONTROL_0					0x00002200
29238c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_0_TOTALATTRTOVS__MASK			0x000000ff
29248c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_0_TOTALATTRTOVS__SHIFT			0
29258c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_CONTROL_0_TOTALATTRTOVS(uint32_t val)
29268c2ecf20Sopenharmony_ci{
29278c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_CONTROL_0_TOTALATTRTOVS__SHIFT) & A4XX_VFD_CONTROL_0_TOTALATTRTOVS__MASK;
29288c2ecf20Sopenharmony_ci}
29298c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_0_BYPASSATTROVS__MASK			0x0001fe00
29308c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_0_BYPASSATTROVS__SHIFT			9
29318c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_CONTROL_0_BYPASSATTROVS(uint32_t val)
29328c2ecf20Sopenharmony_ci{
29338c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_CONTROL_0_BYPASSATTROVS__SHIFT) & A4XX_VFD_CONTROL_0_BYPASSATTROVS__MASK;
29348c2ecf20Sopenharmony_ci}
29358c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_0_STRMDECINSTRCNT__MASK		0x03f00000
29368c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_0_STRMDECINSTRCNT__SHIFT		20
29378c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_CONTROL_0_STRMDECINSTRCNT(uint32_t val)
29388c2ecf20Sopenharmony_ci{
29398c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_CONTROL_0_STRMDECINSTRCNT__SHIFT) & A4XX_VFD_CONTROL_0_STRMDECINSTRCNT__MASK;
29408c2ecf20Sopenharmony_ci}
29418c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_0_STRMFETCHINSTRCNT__MASK		0xfc000000
29428c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_0_STRMFETCHINSTRCNT__SHIFT		26
29438c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_CONTROL_0_STRMFETCHINSTRCNT(uint32_t val)
29448c2ecf20Sopenharmony_ci{
29458c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_CONTROL_0_STRMFETCHINSTRCNT__SHIFT) & A4XX_VFD_CONTROL_0_STRMFETCHINSTRCNT__MASK;
29468c2ecf20Sopenharmony_ci}
29478c2ecf20Sopenharmony_ci
29488c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_CONTROL_1					0x00002201
29498c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_1_MAXSTORAGE__MASK			0x0000ffff
29508c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_1_MAXSTORAGE__SHIFT			0
29518c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_CONTROL_1_MAXSTORAGE(uint32_t val)
29528c2ecf20Sopenharmony_ci{
29538c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_CONTROL_1_MAXSTORAGE__SHIFT) & A4XX_VFD_CONTROL_1_MAXSTORAGE__MASK;
29548c2ecf20Sopenharmony_ci}
29558c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_1_REGID4VTX__MASK			0x00ff0000
29568c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_1_REGID4VTX__SHIFT			16
29578c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_CONTROL_1_REGID4VTX(uint32_t val)
29588c2ecf20Sopenharmony_ci{
29598c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_CONTROL_1_REGID4VTX__SHIFT) & A4XX_VFD_CONTROL_1_REGID4VTX__MASK;
29608c2ecf20Sopenharmony_ci}
29618c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_1_REGID4INST__MASK			0xff000000
29628c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_1_REGID4INST__SHIFT			24
29638c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_CONTROL_1_REGID4INST(uint32_t val)
29648c2ecf20Sopenharmony_ci{
29658c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_CONTROL_1_REGID4INST__SHIFT) & A4XX_VFD_CONTROL_1_REGID4INST__MASK;
29668c2ecf20Sopenharmony_ci}
29678c2ecf20Sopenharmony_ci
29688c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_CONTROL_2					0x00002202
29698c2ecf20Sopenharmony_ci
29708c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_CONTROL_3					0x00002203
29718c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_3_REGID_VTXCNT__MASK			0x0000ff00
29728c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_3_REGID_VTXCNT__SHIFT			8
29738c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_CONTROL_3_REGID_VTXCNT(uint32_t val)
29748c2ecf20Sopenharmony_ci{
29758c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_CONTROL_3_REGID_VTXCNT__SHIFT) & A4XX_VFD_CONTROL_3_REGID_VTXCNT__MASK;
29768c2ecf20Sopenharmony_ci}
29778c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_3_REGID_TESSX__MASK			0x00ff0000
29788c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_3_REGID_TESSX__SHIFT			16
29798c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_CONTROL_3_REGID_TESSX(uint32_t val)
29808c2ecf20Sopenharmony_ci{
29818c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_CONTROL_3_REGID_TESSX__SHIFT) & A4XX_VFD_CONTROL_3_REGID_TESSX__MASK;
29828c2ecf20Sopenharmony_ci}
29838c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_3_REGID_TESSY__MASK			0xff000000
29848c2ecf20Sopenharmony_ci#define A4XX_VFD_CONTROL_3_REGID_TESSY__SHIFT			24
29858c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_CONTROL_3_REGID_TESSY(uint32_t val)
29868c2ecf20Sopenharmony_ci{
29878c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_CONTROL_3_REGID_TESSY__SHIFT) & A4XX_VFD_CONTROL_3_REGID_TESSY__MASK;
29888c2ecf20Sopenharmony_ci}
29898c2ecf20Sopenharmony_ci
29908c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_CONTROL_4					0x00002204
29918c2ecf20Sopenharmony_ci
29928c2ecf20Sopenharmony_ci#define REG_A4XX_VFD_INDEX_OFFSET				0x00002208
29938c2ecf20Sopenharmony_ci
29948c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VFD_FETCH(uint32_t i0) { return 0x0000220a + 0x4*i0; }
29958c2ecf20Sopenharmony_ci
29968c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VFD_FETCH_INSTR_0(uint32_t i0) { return 0x0000220a + 0x4*i0; }
29978c2ecf20Sopenharmony_ci#define A4XX_VFD_FETCH_INSTR_0_FETCHSIZE__MASK			0x0000007f
29988c2ecf20Sopenharmony_ci#define A4XX_VFD_FETCH_INSTR_0_FETCHSIZE__SHIFT			0
29998c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_FETCH_INSTR_0_FETCHSIZE(uint32_t val)
30008c2ecf20Sopenharmony_ci{
30018c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_FETCH_INSTR_0_FETCHSIZE__SHIFT) & A4XX_VFD_FETCH_INSTR_0_FETCHSIZE__MASK;
30028c2ecf20Sopenharmony_ci}
30038c2ecf20Sopenharmony_ci#define A4XX_VFD_FETCH_INSTR_0_BUFSTRIDE__MASK			0x0001ff80
30048c2ecf20Sopenharmony_ci#define A4XX_VFD_FETCH_INSTR_0_BUFSTRIDE__SHIFT			7
30058c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_FETCH_INSTR_0_BUFSTRIDE(uint32_t val)
30068c2ecf20Sopenharmony_ci{
30078c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_FETCH_INSTR_0_BUFSTRIDE__SHIFT) & A4XX_VFD_FETCH_INSTR_0_BUFSTRIDE__MASK;
30088c2ecf20Sopenharmony_ci}
30098c2ecf20Sopenharmony_ci#define A4XX_VFD_FETCH_INSTR_0_SWITCHNEXT			0x00080000
30108c2ecf20Sopenharmony_ci#define A4XX_VFD_FETCH_INSTR_0_INSTANCED			0x00100000
30118c2ecf20Sopenharmony_ci
30128c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VFD_FETCH_INSTR_1(uint32_t i0) { return 0x0000220b + 0x4*i0; }
30138c2ecf20Sopenharmony_ci
30148c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VFD_FETCH_INSTR_2(uint32_t i0) { return 0x0000220c + 0x4*i0; }
30158c2ecf20Sopenharmony_ci#define A4XX_VFD_FETCH_INSTR_2_SIZE__MASK			0xffffffff
30168c2ecf20Sopenharmony_ci#define A4XX_VFD_FETCH_INSTR_2_SIZE__SHIFT			0
30178c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_FETCH_INSTR_2_SIZE(uint32_t val)
30188c2ecf20Sopenharmony_ci{
30198c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_FETCH_INSTR_2_SIZE__SHIFT) & A4XX_VFD_FETCH_INSTR_2_SIZE__MASK;
30208c2ecf20Sopenharmony_ci}
30218c2ecf20Sopenharmony_ci
30228c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VFD_FETCH_INSTR_3(uint32_t i0) { return 0x0000220d + 0x4*i0; }
30238c2ecf20Sopenharmony_ci#define A4XX_VFD_FETCH_INSTR_3_STEPRATE__MASK			0x000001ff
30248c2ecf20Sopenharmony_ci#define A4XX_VFD_FETCH_INSTR_3_STEPRATE__SHIFT			0
30258c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_FETCH_INSTR_3_STEPRATE(uint32_t val)
30268c2ecf20Sopenharmony_ci{
30278c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_FETCH_INSTR_3_STEPRATE__SHIFT) & A4XX_VFD_FETCH_INSTR_3_STEPRATE__MASK;
30288c2ecf20Sopenharmony_ci}
30298c2ecf20Sopenharmony_ci
30308c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VFD_DECODE(uint32_t i0) { return 0x0000228a + 0x1*i0; }
30318c2ecf20Sopenharmony_ci
30328c2ecf20Sopenharmony_cistatic inline uint32_t REG_A4XX_VFD_DECODE_INSTR(uint32_t i0) { return 0x0000228a + 0x1*i0; }
30338c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_WRITEMASK__MASK			0x0000000f
30348c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_WRITEMASK__SHIFT			0
30358c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_DECODE_INSTR_WRITEMASK(uint32_t val)
30368c2ecf20Sopenharmony_ci{
30378c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_DECODE_INSTR_WRITEMASK__SHIFT) & A4XX_VFD_DECODE_INSTR_WRITEMASK__MASK;
30388c2ecf20Sopenharmony_ci}
30398c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_CONSTFILL				0x00000010
30408c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_FORMAT__MASK			0x00000fc0
30418c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_FORMAT__SHIFT			6
30428c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_DECODE_INSTR_FORMAT(enum a4xx_vtx_fmt val)
30438c2ecf20Sopenharmony_ci{
30448c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_DECODE_INSTR_FORMAT__SHIFT) & A4XX_VFD_DECODE_INSTR_FORMAT__MASK;
30458c2ecf20Sopenharmony_ci}
30468c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_REGID__MASK			0x000ff000
30478c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_REGID__SHIFT			12
30488c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_DECODE_INSTR_REGID(uint32_t val)
30498c2ecf20Sopenharmony_ci{
30508c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_DECODE_INSTR_REGID__SHIFT) & A4XX_VFD_DECODE_INSTR_REGID__MASK;
30518c2ecf20Sopenharmony_ci}
30528c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_INT				0x00100000
30538c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_SWAP__MASK			0x00c00000
30548c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_SWAP__SHIFT			22
30558c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_DECODE_INSTR_SWAP(enum a3xx_color_swap val)
30568c2ecf20Sopenharmony_ci{
30578c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_DECODE_INSTR_SWAP__SHIFT) & A4XX_VFD_DECODE_INSTR_SWAP__MASK;
30588c2ecf20Sopenharmony_ci}
30598c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_SHIFTCNT__MASK			0x1f000000
30608c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_SHIFTCNT__SHIFT			24
30618c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_VFD_DECODE_INSTR_SHIFTCNT(uint32_t val)
30628c2ecf20Sopenharmony_ci{
30638c2ecf20Sopenharmony_ci	return ((val) << A4XX_VFD_DECODE_INSTR_SHIFTCNT__SHIFT) & A4XX_VFD_DECODE_INSTR_SHIFTCNT__MASK;
30648c2ecf20Sopenharmony_ci}
30658c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_LASTCOMPVALID			0x20000000
30668c2ecf20Sopenharmony_ci#define A4XX_VFD_DECODE_INSTR_SWITCHNEXT			0x40000000
30678c2ecf20Sopenharmony_ci
30688c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_DEBUG_ECO_CONTROL				0x00000f00
30698c2ecf20Sopenharmony_ci
30708c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_MODE_CONTROL				0x00000f03
30718c2ecf20Sopenharmony_ci
30728c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_PERFCTR_TP_SEL_0				0x00000f04
30738c2ecf20Sopenharmony_ci
30748c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_PERFCTR_TP_SEL_1				0x00000f05
30758c2ecf20Sopenharmony_ci
30768c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_PERFCTR_TP_SEL_2				0x00000f06
30778c2ecf20Sopenharmony_ci
30788c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_PERFCTR_TP_SEL_3				0x00000f07
30798c2ecf20Sopenharmony_ci
30808c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_PERFCTR_TP_SEL_4				0x00000f08
30818c2ecf20Sopenharmony_ci
30828c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_PERFCTR_TP_SEL_5				0x00000f09
30838c2ecf20Sopenharmony_ci
30848c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_PERFCTR_TP_SEL_6				0x00000f0a
30858c2ecf20Sopenharmony_ci
30868c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_PERFCTR_TP_SEL_7				0x00000f0b
30878c2ecf20Sopenharmony_ci
30888c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_TEX_OFFSET				0x00002380
30898c2ecf20Sopenharmony_ci
30908c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_TEX_COUNT				0x00002381
30918c2ecf20Sopenharmony_ci#define A4XX_TPL1_TP_TEX_COUNT_VS__MASK				0x000000ff
30928c2ecf20Sopenharmony_ci#define A4XX_TPL1_TP_TEX_COUNT_VS__SHIFT			0
30938c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TPL1_TP_TEX_COUNT_VS(uint32_t val)
30948c2ecf20Sopenharmony_ci{
30958c2ecf20Sopenharmony_ci	return ((val) << A4XX_TPL1_TP_TEX_COUNT_VS__SHIFT) & A4XX_TPL1_TP_TEX_COUNT_VS__MASK;
30968c2ecf20Sopenharmony_ci}
30978c2ecf20Sopenharmony_ci#define A4XX_TPL1_TP_TEX_COUNT_HS__MASK				0x0000ff00
30988c2ecf20Sopenharmony_ci#define A4XX_TPL1_TP_TEX_COUNT_HS__SHIFT			8
30998c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TPL1_TP_TEX_COUNT_HS(uint32_t val)
31008c2ecf20Sopenharmony_ci{
31018c2ecf20Sopenharmony_ci	return ((val) << A4XX_TPL1_TP_TEX_COUNT_HS__SHIFT) & A4XX_TPL1_TP_TEX_COUNT_HS__MASK;
31028c2ecf20Sopenharmony_ci}
31038c2ecf20Sopenharmony_ci#define A4XX_TPL1_TP_TEX_COUNT_DS__MASK				0x00ff0000
31048c2ecf20Sopenharmony_ci#define A4XX_TPL1_TP_TEX_COUNT_DS__SHIFT			16
31058c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TPL1_TP_TEX_COUNT_DS(uint32_t val)
31068c2ecf20Sopenharmony_ci{
31078c2ecf20Sopenharmony_ci	return ((val) << A4XX_TPL1_TP_TEX_COUNT_DS__SHIFT) & A4XX_TPL1_TP_TEX_COUNT_DS__MASK;
31088c2ecf20Sopenharmony_ci}
31098c2ecf20Sopenharmony_ci#define A4XX_TPL1_TP_TEX_COUNT_GS__MASK				0xff000000
31108c2ecf20Sopenharmony_ci#define A4XX_TPL1_TP_TEX_COUNT_GS__SHIFT			24
31118c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TPL1_TP_TEX_COUNT_GS(uint32_t val)
31128c2ecf20Sopenharmony_ci{
31138c2ecf20Sopenharmony_ci	return ((val) << A4XX_TPL1_TP_TEX_COUNT_GS__SHIFT) & A4XX_TPL1_TP_TEX_COUNT_GS__MASK;
31148c2ecf20Sopenharmony_ci}
31158c2ecf20Sopenharmony_ci
31168c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_VS_BORDER_COLOR_BASE_ADDR		0x00002384
31178c2ecf20Sopenharmony_ci
31188c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_HS_BORDER_COLOR_BASE_ADDR		0x00002387
31198c2ecf20Sopenharmony_ci
31208c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_DS_BORDER_COLOR_BASE_ADDR		0x0000238a
31218c2ecf20Sopenharmony_ci
31228c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_GS_BORDER_COLOR_BASE_ADDR		0x0000238d
31238c2ecf20Sopenharmony_ci
31248c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_FS_TEX_COUNT				0x000023a0
31258c2ecf20Sopenharmony_ci
31268c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_FS_BORDER_COLOR_BASE_ADDR		0x000023a1
31278c2ecf20Sopenharmony_ci
31288c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_CS_BORDER_COLOR_BASE_ADDR		0x000023a4
31298c2ecf20Sopenharmony_ci
31308c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_CS_SAMPLER_BASE_ADDR			0x000023a5
31318c2ecf20Sopenharmony_ci
31328c2ecf20Sopenharmony_ci#define REG_A4XX_TPL1_TP_CS_TEXMEMOBJ_BASE_ADDR			0x000023a6
31338c2ecf20Sopenharmony_ci
31348c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_TSE_STATUS				0x00000c80
31358c2ecf20Sopenharmony_ci
31368c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_DEBUG_ECO_CONTROL				0x00000c81
31378c2ecf20Sopenharmony_ci
31388c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_PERFCTR_TSE_SEL_0				0x00000c88
31398c2ecf20Sopenharmony_ci
31408c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_PERFCTR_TSE_SEL_1				0x00000c89
31418c2ecf20Sopenharmony_ci
31428c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_PERFCTR_TSE_SEL_2				0x00000c8a
31438c2ecf20Sopenharmony_ci
31448c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_PERFCTR_TSE_SEL_3				0x00000c8b
31458c2ecf20Sopenharmony_ci
31468c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_PERFCTR_RAS_SEL_0				0x00000c8c
31478c2ecf20Sopenharmony_ci
31488c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_PERFCTR_RAS_SEL_1				0x00000c8d
31498c2ecf20Sopenharmony_ci
31508c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_PERFCTR_RAS_SEL_2				0x00000c8e
31518c2ecf20Sopenharmony_ci
31528c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_PERFCTR_RAS_SEL_3				0x00000c8f
31538c2ecf20Sopenharmony_ci
31548c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_CL_CLIP_CNTL				0x00002000
31558c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_CLIP_CNTL_CLIP_DISABLE			0x00008000
31568c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_CLIP_CNTL_ZNEAR_CLIP_DISABLE		0x00010000
31578c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_CLIP_CNTL_ZFAR_CLIP_DISABLE		0x00020000
31588c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_CLIP_CNTL_ZERO_GB_SCALE_Z			0x00400000
31598c2ecf20Sopenharmony_ci
31608c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_CNTL					0x00002003
31618c2ecf20Sopenharmony_ci#define A4XX_GRAS_CNTL_IJ_PERSP					0x00000001
31628c2ecf20Sopenharmony_ci#define A4XX_GRAS_CNTL_IJ_LINEAR				0x00000002
31638c2ecf20Sopenharmony_ci
31648c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_CL_GB_CLIP_ADJ				0x00002004
31658c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_GB_CLIP_ADJ_HORZ__MASK			0x000003ff
31668c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_GB_CLIP_ADJ_HORZ__SHIFT			0
31678c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_CL_GB_CLIP_ADJ_HORZ(uint32_t val)
31688c2ecf20Sopenharmony_ci{
31698c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_CL_GB_CLIP_ADJ_HORZ__SHIFT) & A4XX_GRAS_CL_GB_CLIP_ADJ_HORZ__MASK;
31708c2ecf20Sopenharmony_ci}
31718c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_GB_CLIP_ADJ_VERT__MASK			0x000ffc00
31728c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_GB_CLIP_ADJ_VERT__SHIFT			10
31738c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_CL_GB_CLIP_ADJ_VERT(uint32_t val)
31748c2ecf20Sopenharmony_ci{
31758c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_CL_GB_CLIP_ADJ_VERT__SHIFT) & A4XX_GRAS_CL_GB_CLIP_ADJ_VERT__MASK;
31768c2ecf20Sopenharmony_ci}
31778c2ecf20Sopenharmony_ci
31788c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_CL_VPORT_XOFFSET_0			0x00002008
31798c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_XOFFSET_0__MASK			0xffffffff
31808c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_XOFFSET_0__SHIFT			0
31818c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_CL_VPORT_XOFFSET_0(float val)
31828c2ecf20Sopenharmony_ci{
31838c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_GRAS_CL_VPORT_XOFFSET_0__SHIFT) & A4XX_GRAS_CL_VPORT_XOFFSET_0__MASK;
31848c2ecf20Sopenharmony_ci}
31858c2ecf20Sopenharmony_ci
31868c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_CL_VPORT_XSCALE_0				0x00002009
31878c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_XSCALE_0__MASK			0xffffffff
31888c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_XSCALE_0__SHIFT			0
31898c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_CL_VPORT_XSCALE_0(float val)
31908c2ecf20Sopenharmony_ci{
31918c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_GRAS_CL_VPORT_XSCALE_0__SHIFT) & A4XX_GRAS_CL_VPORT_XSCALE_0__MASK;
31928c2ecf20Sopenharmony_ci}
31938c2ecf20Sopenharmony_ci
31948c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_CL_VPORT_YOFFSET_0			0x0000200a
31958c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_YOFFSET_0__MASK			0xffffffff
31968c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_YOFFSET_0__SHIFT			0
31978c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_CL_VPORT_YOFFSET_0(float val)
31988c2ecf20Sopenharmony_ci{
31998c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_GRAS_CL_VPORT_YOFFSET_0__SHIFT) & A4XX_GRAS_CL_VPORT_YOFFSET_0__MASK;
32008c2ecf20Sopenharmony_ci}
32018c2ecf20Sopenharmony_ci
32028c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_CL_VPORT_YSCALE_0				0x0000200b
32038c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_YSCALE_0__MASK			0xffffffff
32048c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_YSCALE_0__SHIFT			0
32058c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_CL_VPORT_YSCALE_0(float val)
32068c2ecf20Sopenharmony_ci{
32078c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_GRAS_CL_VPORT_YSCALE_0__SHIFT) & A4XX_GRAS_CL_VPORT_YSCALE_0__MASK;
32088c2ecf20Sopenharmony_ci}
32098c2ecf20Sopenharmony_ci
32108c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_CL_VPORT_ZOFFSET_0			0x0000200c
32118c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_ZOFFSET_0__MASK			0xffffffff
32128c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_ZOFFSET_0__SHIFT			0
32138c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_CL_VPORT_ZOFFSET_0(float val)
32148c2ecf20Sopenharmony_ci{
32158c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_GRAS_CL_VPORT_ZOFFSET_0__SHIFT) & A4XX_GRAS_CL_VPORT_ZOFFSET_0__MASK;
32168c2ecf20Sopenharmony_ci}
32178c2ecf20Sopenharmony_ci
32188c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_CL_VPORT_ZSCALE_0				0x0000200d
32198c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_ZSCALE_0__MASK			0xffffffff
32208c2ecf20Sopenharmony_ci#define A4XX_GRAS_CL_VPORT_ZSCALE_0__SHIFT			0
32218c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_CL_VPORT_ZSCALE_0(float val)
32228c2ecf20Sopenharmony_ci{
32238c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_GRAS_CL_VPORT_ZSCALE_0__SHIFT) & A4XX_GRAS_CL_VPORT_ZSCALE_0__MASK;
32248c2ecf20Sopenharmony_ci}
32258c2ecf20Sopenharmony_ci
32268c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SU_POINT_MINMAX				0x00002070
32278c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POINT_MINMAX_MIN__MASK			0x0000ffff
32288c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POINT_MINMAX_MIN__SHIFT			0
32298c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SU_POINT_MINMAX_MIN(float val)
32308c2ecf20Sopenharmony_ci{
32318c2ecf20Sopenharmony_ci	return ((((uint32_t)(val * 16.0))) << A4XX_GRAS_SU_POINT_MINMAX_MIN__SHIFT) & A4XX_GRAS_SU_POINT_MINMAX_MIN__MASK;
32328c2ecf20Sopenharmony_ci}
32338c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POINT_MINMAX_MAX__MASK			0xffff0000
32348c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POINT_MINMAX_MAX__SHIFT			16
32358c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SU_POINT_MINMAX_MAX(float val)
32368c2ecf20Sopenharmony_ci{
32378c2ecf20Sopenharmony_ci	return ((((uint32_t)(val * 16.0))) << A4XX_GRAS_SU_POINT_MINMAX_MAX__SHIFT) & A4XX_GRAS_SU_POINT_MINMAX_MAX__MASK;
32388c2ecf20Sopenharmony_ci}
32398c2ecf20Sopenharmony_ci
32408c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SU_POINT_SIZE				0x00002071
32418c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POINT_SIZE__MASK				0xffffffff
32428c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POINT_SIZE__SHIFT				0
32438c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SU_POINT_SIZE(float val)
32448c2ecf20Sopenharmony_ci{
32458c2ecf20Sopenharmony_ci	return ((((int32_t)(val * 16.0))) << A4XX_GRAS_SU_POINT_SIZE__SHIFT) & A4XX_GRAS_SU_POINT_SIZE__MASK;
32468c2ecf20Sopenharmony_ci}
32478c2ecf20Sopenharmony_ci
32488c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_ALPHA_CONTROL				0x00002073
32498c2ecf20Sopenharmony_ci#define A4XX_GRAS_ALPHA_CONTROL_ALPHA_TEST_ENABLE		0x00000004
32508c2ecf20Sopenharmony_ci#define A4XX_GRAS_ALPHA_CONTROL_FORCE_FRAGZ_TO_FS		0x00000008
32518c2ecf20Sopenharmony_ci
32528c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SU_POLY_OFFSET_SCALE			0x00002074
32538c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POLY_OFFSET_SCALE__MASK			0xffffffff
32548c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POLY_OFFSET_SCALE__SHIFT			0
32558c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SU_POLY_OFFSET_SCALE(float val)
32568c2ecf20Sopenharmony_ci{
32578c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_GRAS_SU_POLY_OFFSET_SCALE__SHIFT) & A4XX_GRAS_SU_POLY_OFFSET_SCALE__MASK;
32588c2ecf20Sopenharmony_ci}
32598c2ecf20Sopenharmony_ci
32608c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SU_POLY_OFFSET_OFFSET			0x00002075
32618c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POLY_OFFSET_OFFSET__MASK			0xffffffff
32628c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POLY_OFFSET_OFFSET__SHIFT			0
32638c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SU_POLY_OFFSET_OFFSET(float val)
32648c2ecf20Sopenharmony_ci{
32658c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_GRAS_SU_POLY_OFFSET_OFFSET__SHIFT) & A4XX_GRAS_SU_POLY_OFFSET_OFFSET__MASK;
32668c2ecf20Sopenharmony_ci}
32678c2ecf20Sopenharmony_ci
32688c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SU_POLY_OFFSET_CLAMP			0x00002076
32698c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POLY_OFFSET_CLAMP__MASK			0xffffffff
32708c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_POLY_OFFSET_CLAMP__SHIFT			0
32718c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SU_POLY_OFFSET_CLAMP(float val)
32728c2ecf20Sopenharmony_ci{
32738c2ecf20Sopenharmony_ci	return ((fui(val)) << A4XX_GRAS_SU_POLY_OFFSET_CLAMP__SHIFT) & A4XX_GRAS_SU_POLY_OFFSET_CLAMP__MASK;
32748c2ecf20Sopenharmony_ci}
32758c2ecf20Sopenharmony_ci
32768c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_DEPTH_CONTROL				0x00002077
32778c2ecf20Sopenharmony_ci#define A4XX_GRAS_DEPTH_CONTROL_FORMAT__MASK			0x00000003
32788c2ecf20Sopenharmony_ci#define A4XX_GRAS_DEPTH_CONTROL_FORMAT__SHIFT			0
32798c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_DEPTH_CONTROL_FORMAT(enum a4xx_depth_format val)
32808c2ecf20Sopenharmony_ci{
32818c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_DEPTH_CONTROL_FORMAT__SHIFT) & A4XX_GRAS_DEPTH_CONTROL_FORMAT__MASK;
32828c2ecf20Sopenharmony_ci}
32838c2ecf20Sopenharmony_ci
32848c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SU_MODE_CONTROL				0x00002078
32858c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_MODE_CONTROL_CULL_FRONT			0x00000001
32868c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_MODE_CONTROL_CULL_BACK			0x00000002
32878c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_MODE_CONTROL_FRONT_CW			0x00000004
32888c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH__MASK		0x000007f8
32898c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH__SHIFT		3
32908c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH(float val)
32918c2ecf20Sopenharmony_ci{
32928c2ecf20Sopenharmony_ci	return ((((int32_t)(val * 4.0))) << A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH__SHIFT) & A4XX_GRAS_SU_MODE_CONTROL_LINEHALFWIDTH__MASK;
32938c2ecf20Sopenharmony_ci}
32948c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_MODE_CONTROL_POLY_OFFSET			0x00000800
32958c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_MODE_CONTROL_MSAA_ENABLE			0x00002000
32968c2ecf20Sopenharmony_ci#define A4XX_GRAS_SU_MODE_CONTROL_RENDERING_PASS		0x00100000
32978c2ecf20Sopenharmony_ci
32988c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SC_CONTROL				0x0000207b
32998c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_CONTROL_RENDER_MODE__MASK			0x0000000c
33008c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_CONTROL_RENDER_MODE__SHIFT			2
33018c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_CONTROL_RENDER_MODE(enum a3xx_render_mode val)
33028c2ecf20Sopenharmony_ci{
33038c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_CONTROL_RENDER_MODE__SHIFT) & A4XX_GRAS_SC_CONTROL_RENDER_MODE__MASK;
33048c2ecf20Sopenharmony_ci}
33058c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_CONTROL_MSAA_SAMPLES__MASK			0x00000380
33068c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_CONTROL_MSAA_SAMPLES__SHIFT		7
33078c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_CONTROL_MSAA_SAMPLES(uint32_t val)
33088c2ecf20Sopenharmony_ci{
33098c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_CONTROL_MSAA_SAMPLES__SHIFT) & A4XX_GRAS_SC_CONTROL_MSAA_SAMPLES__MASK;
33108c2ecf20Sopenharmony_ci}
33118c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_CONTROL_MSAA_DISABLE			0x00000800
33128c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_CONTROL_RASTER_MODE__MASK			0x0000f000
33138c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_CONTROL_RASTER_MODE__SHIFT			12
33148c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_CONTROL_RASTER_MODE(uint32_t val)
33158c2ecf20Sopenharmony_ci{
33168c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_CONTROL_RASTER_MODE__SHIFT) & A4XX_GRAS_SC_CONTROL_RASTER_MODE__MASK;
33178c2ecf20Sopenharmony_ci}
33188c2ecf20Sopenharmony_ci
33198c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SC_SCREEN_SCISSOR_TL			0x0000207c
33208c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_SCREEN_SCISSOR_TL_WINDOW_OFFSET_DISABLE	0x80000000
33218c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_SCREEN_SCISSOR_TL_X__MASK			0x00007fff
33228c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_SCREEN_SCISSOR_TL_X__SHIFT			0
33238c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_SCREEN_SCISSOR_TL_X(uint32_t val)
33248c2ecf20Sopenharmony_ci{
33258c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_SCREEN_SCISSOR_TL_X__SHIFT) & A4XX_GRAS_SC_SCREEN_SCISSOR_TL_X__MASK;
33268c2ecf20Sopenharmony_ci}
33278c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_SCREEN_SCISSOR_TL_Y__MASK			0x7fff0000
33288c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_SCREEN_SCISSOR_TL_Y__SHIFT			16
33298c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_SCREEN_SCISSOR_TL_Y(uint32_t val)
33308c2ecf20Sopenharmony_ci{
33318c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_SCREEN_SCISSOR_TL_Y__SHIFT) & A4XX_GRAS_SC_SCREEN_SCISSOR_TL_Y__MASK;
33328c2ecf20Sopenharmony_ci}
33338c2ecf20Sopenharmony_ci
33348c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SC_SCREEN_SCISSOR_BR			0x0000207d
33358c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_SCREEN_SCISSOR_BR_WINDOW_OFFSET_DISABLE	0x80000000
33368c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_SCREEN_SCISSOR_BR_X__MASK			0x00007fff
33378c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_SCREEN_SCISSOR_BR_X__SHIFT			0
33388c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_SCREEN_SCISSOR_BR_X(uint32_t val)
33398c2ecf20Sopenharmony_ci{
33408c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_SCREEN_SCISSOR_BR_X__SHIFT) & A4XX_GRAS_SC_SCREEN_SCISSOR_BR_X__MASK;
33418c2ecf20Sopenharmony_ci}
33428c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y__MASK			0x7fff0000
33438c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y__SHIFT			16
33448c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y(uint32_t val)
33458c2ecf20Sopenharmony_ci{
33468c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y__SHIFT) & A4XX_GRAS_SC_SCREEN_SCISSOR_BR_Y__MASK;
33478c2ecf20Sopenharmony_ci}
33488c2ecf20Sopenharmony_ci
33498c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SC_WINDOW_SCISSOR_BR			0x0000209c
33508c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_WINDOW_SCISSOR_BR_WINDOW_OFFSET_DISABLE	0x80000000
33518c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X__MASK			0x00007fff
33528c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X__SHIFT			0
33538c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X(uint32_t val)
33548c2ecf20Sopenharmony_ci{
33558c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X__SHIFT) & A4XX_GRAS_SC_WINDOW_SCISSOR_BR_X__MASK;
33568c2ecf20Sopenharmony_ci}
33578c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y__MASK			0x7fff0000
33588c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y__SHIFT			16
33598c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y(uint32_t val)
33608c2ecf20Sopenharmony_ci{
33618c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y__SHIFT) & A4XX_GRAS_SC_WINDOW_SCISSOR_BR_Y__MASK;
33628c2ecf20Sopenharmony_ci}
33638c2ecf20Sopenharmony_ci
33648c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SC_WINDOW_SCISSOR_TL			0x0000209d
33658c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_WINDOW_SCISSOR_TL_WINDOW_OFFSET_DISABLE	0x80000000
33668c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_WINDOW_SCISSOR_TL_X__MASK			0x00007fff
33678c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_WINDOW_SCISSOR_TL_X__SHIFT			0
33688c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_WINDOW_SCISSOR_TL_X(uint32_t val)
33698c2ecf20Sopenharmony_ci{
33708c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_WINDOW_SCISSOR_TL_X__SHIFT) & A4XX_GRAS_SC_WINDOW_SCISSOR_TL_X__MASK;
33718c2ecf20Sopenharmony_ci}
33728c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_WINDOW_SCISSOR_TL_Y__MASK			0x7fff0000
33738c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_WINDOW_SCISSOR_TL_Y__SHIFT			16
33748c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_WINDOW_SCISSOR_TL_Y(uint32_t val)
33758c2ecf20Sopenharmony_ci{
33768c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_WINDOW_SCISSOR_TL_Y__SHIFT) & A4XX_GRAS_SC_WINDOW_SCISSOR_TL_Y__MASK;
33778c2ecf20Sopenharmony_ci}
33788c2ecf20Sopenharmony_ci
33798c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SC_EXTENT_WINDOW_BR			0x0000209e
33808c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_EXTENT_WINDOW_BR_WINDOW_OFFSET_DISABLE	0x80000000
33818c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_EXTENT_WINDOW_BR_X__MASK			0x00007fff
33828c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_EXTENT_WINDOW_BR_X__SHIFT			0
33838c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_EXTENT_WINDOW_BR_X(uint32_t val)
33848c2ecf20Sopenharmony_ci{
33858c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_EXTENT_WINDOW_BR_X__SHIFT) & A4XX_GRAS_SC_EXTENT_WINDOW_BR_X__MASK;
33868c2ecf20Sopenharmony_ci}
33878c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_EXTENT_WINDOW_BR_Y__MASK			0x7fff0000
33888c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_EXTENT_WINDOW_BR_Y__SHIFT			16
33898c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_EXTENT_WINDOW_BR_Y(uint32_t val)
33908c2ecf20Sopenharmony_ci{
33918c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_EXTENT_WINDOW_BR_Y__SHIFT) & A4XX_GRAS_SC_EXTENT_WINDOW_BR_Y__MASK;
33928c2ecf20Sopenharmony_ci}
33938c2ecf20Sopenharmony_ci
33948c2ecf20Sopenharmony_ci#define REG_A4XX_GRAS_SC_EXTENT_WINDOW_TL			0x0000209f
33958c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_EXTENT_WINDOW_TL_WINDOW_OFFSET_DISABLE	0x80000000
33968c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_EXTENT_WINDOW_TL_X__MASK			0x00007fff
33978c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_EXTENT_WINDOW_TL_X__SHIFT			0
33988c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_EXTENT_WINDOW_TL_X(uint32_t val)
33998c2ecf20Sopenharmony_ci{
34008c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_EXTENT_WINDOW_TL_X__SHIFT) & A4XX_GRAS_SC_EXTENT_WINDOW_TL_X__MASK;
34018c2ecf20Sopenharmony_ci}
34028c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_EXTENT_WINDOW_TL_Y__MASK			0x7fff0000
34038c2ecf20Sopenharmony_ci#define A4XX_GRAS_SC_EXTENT_WINDOW_TL_Y__SHIFT			16
34048c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_GRAS_SC_EXTENT_WINDOW_TL_Y(uint32_t val)
34058c2ecf20Sopenharmony_ci{
34068c2ecf20Sopenharmony_ci	return ((val) << A4XX_GRAS_SC_EXTENT_WINDOW_TL_Y__SHIFT) & A4XX_GRAS_SC_EXTENT_WINDOW_TL_Y__MASK;
34078c2ecf20Sopenharmony_ci}
34088c2ecf20Sopenharmony_ci
34098c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_CACHE_MODE_CONTROL			0x00000e80
34108c2ecf20Sopenharmony_ci
34118c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_TRAP_BASE_LO				0x00000e83
34128c2ecf20Sopenharmony_ci
34138c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_TRAP_BASE_HI				0x00000e84
34148c2ecf20Sopenharmony_ci
34158c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_CACHE_STATUS				0x00000e88
34168c2ecf20Sopenharmony_ci
34178c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_INVALIDATE0				0x00000e8a
34188c2ecf20Sopenharmony_ci
34198c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_INVALIDATE1				0x00000e8b
34208c2ecf20Sopenharmony_ci
34218c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_CACHE_WAYS_VFD				0x00000e8c
34228c2ecf20Sopenharmony_ci
34238c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_0			0x00000e8e
34248c2ecf20Sopenharmony_ci
34258c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_1			0x00000e8f
34268c2ecf20Sopenharmony_ci
34278c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_2			0x00000e90
34288c2ecf20Sopenharmony_ci
34298c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_3			0x00000e91
34308c2ecf20Sopenharmony_ci
34318c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_4			0x00000e92
34328c2ecf20Sopenharmony_ci
34338c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_5			0x00000e93
34348c2ecf20Sopenharmony_ci
34358c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_6			0x00000e94
34368c2ecf20Sopenharmony_ci
34378c2ecf20Sopenharmony_ci#define REG_A4XX_UCHE_PERFCTR_UCHE_SEL_7			0x00000e95
34388c2ecf20Sopenharmony_ci
34398c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_TIMEOUT_THRESHOLD				0x00000e00
34408c2ecf20Sopenharmony_ci
34418c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_DEBUG_ECO_CONTROL				0x00000e04
34428c2ecf20Sopenharmony_ci
34438c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_MODE_CONTROL				0x00000e05
34448c2ecf20Sopenharmony_ci
34458c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_PERF_PIPE_MASK				0x00000e0e
34468c2ecf20Sopenharmony_ci
34478c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_0			0x00000e06
34488c2ecf20Sopenharmony_ci
34498c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_1			0x00000e07
34508c2ecf20Sopenharmony_ci
34518c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_2			0x00000e08
34528c2ecf20Sopenharmony_ci
34538c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_3			0x00000e09
34548c2ecf20Sopenharmony_ci
34558c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_4			0x00000e0a
34568c2ecf20Sopenharmony_ci
34578c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_5			0x00000e0b
34588c2ecf20Sopenharmony_ci
34598c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_6			0x00000e0c
34608c2ecf20Sopenharmony_ci
34618c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_PERFCTR_HLSQ_SEL_7			0x00000e0d
34628c2ecf20Sopenharmony_ci
34638c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CONTROL_0_REG				0x000023c0
34648c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_FSTHREADSIZE__MASK		0x00000010
34658c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_FSTHREADSIZE__SHIFT		4
34668c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_0_REG_FSTHREADSIZE(enum a3xx_threadsize val)
34678c2ecf20Sopenharmony_ci{
34688c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_0_REG_FSTHREADSIZE__SHIFT) & A4XX_HLSQ_CONTROL_0_REG_FSTHREADSIZE__MASK;
34698c2ecf20Sopenharmony_ci}
34708c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_FSSUPERTHREADENABLE		0x00000040
34718c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_SPSHADERRESTART			0x00000200
34728c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_RESERVED2			0x00000400
34738c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_CHUNKDISABLE			0x04000000
34748c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_CONSTMODE__MASK			0x08000000
34758c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_CONSTMODE__SHIFT		27
34768c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_0_REG_CONSTMODE(uint32_t val)
34778c2ecf20Sopenharmony_ci{
34788c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_0_REG_CONSTMODE__SHIFT) & A4XX_HLSQ_CONTROL_0_REG_CONSTMODE__MASK;
34798c2ecf20Sopenharmony_ci}
34808c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_LAZYUPDATEDISABLE		0x10000000
34818c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_SPCONSTFULLUPDATE		0x20000000
34828c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_TPFULLUPDATE			0x40000000
34838c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_0_REG_SINGLECONTEXT			0x80000000
34848c2ecf20Sopenharmony_ci
34858c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CONTROL_1_REG				0x000023c1
34868c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_1_REG_VSTHREADSIZE__MASK		0x00000040
34878c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_1_REG_VSTHREADSIZE__SHIFT		6
34888c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_1_REG_VSTHREADSIZE(enum a3xx_threadsize val)
34898c2ecf20Sopenharmony_ci{
34908c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_1_REG_VSTHREADSIZE__SHIFT) & A4XX_HLSQ_CONTROL_1_REG_VSTHREADSIZE__MASK;
34918c2ecf20Sopenharmony_ci}
34928c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_1_REG_VSSUPERTHREADENABLE		0x00000100
34938c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_1_REG_RESERVED1			0x00000200
34948c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_1_REG_COORDREGID__MASK		0x00ff0000
34958c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_1_REG_COORDREGID__SHIFT		16
34968c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_1_REG_COORDREGID(uint32_t val)
34978c2ecf20Sopenharmony_ci{
34988c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_1_REG_COORDREGID__SHIFT) & A4XX_HLSQ_CONTROL_1_REG_COORDREGID__MASK;
34998c2ecf20Sopenharmony_ci}
35008c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_1_REG_ZWCOORDREGID__MASK		0xff000000
35018c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_1_REG_ZWCOORDREGID__SHIFT		24
35028c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_1_REG_ZWCOORDREGID(uint32_t val)
35038c2ecf20Sopenharmony_ci{
35048c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_1_REG_ZWCOORDREGID__SHIFT) & A4XX_HLSQ_CONTROL_1_REG_ZWCOORDREGID__MASK;
35058c2ecf20Sopenharmony_ci}
35068c2ecf20Sopenharmony_ci
35078c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CONTROL_2_REG				0x000023c2
35088c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD__MASK	0xfc000000
35098c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD__SHIFT	26
35108c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD(uint32_t val)
35118c2ecf20Sopenharmony_ci{
35128c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD__SHIFT) & A4XX_HLSQ_CONTROL_2_REG_PRIMALLOCTHRESHOLD__MASK;
35138c2ecf20Sopenharmony_ci}
35148c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_2_REG_FACEREGID__MASK			0x000003fc
35158c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_2_REG_FACEREGID__SHIFT		2
35168c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_2_REG_FACEREGID(uint32_t val)
35178c2ecf20Sopenharmony_ci{
35188c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_2_REG_FACEREGID__SHIFT) & A4XX_HLSQ_CONTROL_2_REG_FACEREGID__MASK;
35198c2ecf20Sopenharmony_ci}
35208c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_2_REG_SAMPLEID_REGID__MASK		0x0003fc00
35218c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_2_REG_SAMPLEID_REGID__SHIFT		10
35228c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_2_REG_SAMPLEID_REGID(uint32_t val)
35238c2ecf20Sopenharmony_ci{
35248c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_2_REG_SAMPLEID_REGID__SHIFT) & A4XX_HLSQ_CONTROL_2_REG_SAMPLEID_REGID__MASK;
35258c2ecf20Sopenharmony_ci}
35268c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_2_REG_SAMPLEMASK_REGID__MASK		0x03fc0000
35278c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_2_REG_SAMPLEMASK_REGID__SHIFT		18
35288c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_2_REG_SAMPLEMASK_REGID(uint32_t val)
35298c2ecf20Sopenharmony_ci{
35308c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_2_REG_SAMPLEMASK_REGID__SHIFT) & A4XX_HLSQ_CONTROL_2_REG_SAMPLEMASK_REGID__MASK;
35318c2ecf20Sopenharmony_ci}
35328c2ecf20Sopenharmony_ci
35338c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CONTROL_3_REG				0x000023c3
35348c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_3_REG_IJ_PERSP_PIXEL__MASK		0x000000ff
35358c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_3_REG_IJ_PERSP_PIXEL__SHIFT		0
35368c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_3_REG_IJ_PERSP_PIXEL(uint32_t val)
35378c2ecf20Sopenharmony_ci{
35388c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_3_REG_IJ_PERSP_PIXEL__SHIFT) & A4XX_HLSQ_CONTROL_3_REG_IJ_PERSP_PIXEL__MASK;
35398c2ecf20Sopenharmony_ci}
35408c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_3_REG_IJ_LINEAR_PIXEL__MASK		0x0000ff00
35418c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_3_REG_IJ_LINEAR_PIXEL__SHIFT		8
35428c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_3_REG_IJ_LINEAR_PIXEL(uint32_t val)
35438c2ecf20Sopenharmony_ci{
35448c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_3_REG_IJ_LINEAR_PIXEL__SHIFT) & A4XX_HLSQ_CONTROL_3_REG_IJ_LINEAR_PIXEL__MASK;
35458c2ecf20Sopenharmony_ci}
35468c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_3_REG_IJ_PERSP_CENTROID__MASK		0x00ff0000
35478c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_3_REG_IJ_PERSP_CENTROID__SHIFT	16
35488c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_3_REG_IJ_PERSP_CENTROID(uint32_t val)
35498c2ecf20Sopenharmony_ci{
35508c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_3_REG_IJ_PERSP_CENTROID__SHIFT) & A4XX_HLSQ_CONTROL_3_REG_IJ_PERSP_CENTROID__MASK;
35518c2ecf20Sopenharmony_ci}
35528c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_3_REG_IJ_LINEAR_CENTROID__MASK	0xff000000
35538c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_3_REG_IJ_LINEAR_CENTROID__SHIFT	24
35548c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_3_REG_IJ_LINEAR_CENTROID(uint32_t val)
35558c2ecf20Sopenharmony_ci{
35568c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_3_REG_IJ_LINEAR_CENTROID__SHIFT) & A4XX_HLSQ_CONTROL_3_REG_IJ_LINEAR_CENTROID__MASK;
35578c2ecf20Sopenharmony_ci}
35588c2ecf20Sopenharmony_ci
35598c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CONTROL_4_REG				0x000023c4
35608c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_4_REG_IJ_PERSP_SAMPLE__MASK		0x000000ff
35618c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_4_REG_IJ_PERSP_SAMPLE__SHIFT		0
35628c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_4_REG_IJ_PERSP_SAMPLE(uint32_t val)
35638c2ecf20Sopenharmony_ci{
35648c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_4_REG_IJ_PERSP_SAMPLE__SHIFT) & A4XX_HLSQ_CONTROL_4_REG_IJ_PERSP_SAMPLE__MASK;
35658c2ecf20Sopenharmony_ci}
35668c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_4_REG_IJ_LINEAR_SAMPLE__MASK		0x0000ff00
35678c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CONTROL_4_REG_IJ_LINEAR_SAMPLE__SHIFT		8
35688c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CONTROL_4_REG_IJ_LINEAR_SAMPLE(uint32_t val)
35698c2ecf20Sopenharmony_ci{
35708c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CONTROL_4_REG_IJ_LINEAR_SAMPLE__SHIFT) & A4XX_HLSQ_CONTROL_4_REG_IJ_LINEAR_SAMPLE__MASK;
35718c2ecf20Sopenharmony_ci}
35728c2ecf20Sopenharmony_ci
35738c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_VS_CONTROL_REG				0x000023c5
35748c2ecf20Sopenharmony_ci#define A4XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH__MASK		0x000000ff
35758c2ecf20Sopenharmony_ci#define A4XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH__SHIFT		0
35768c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH(uint32_t val)
35778c2ecf20Sopenharmony_ci{
35788c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_VS_CONTROL_REG_CONSTLENGTH__MASK;
35798c2ecf20Sopenharmony_ci}
35808c2ecf20Sopenharmony_ci#define A4XX_HLSQ_VS_CONTROL_REG_CONSTOBJECTOFFSET__MASK	0x00007f00
35818c2ecf20Sopenharmony_ci#define A4XX_HLSQ_VS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT	8
35828c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_VS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
35838c2ecf20Sopenharmony_ci{
35848c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_VS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_VS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
35858c2ecf20Sopenharmony_ci}
35868c2ecf20Sopenharmony_ci#define A4XX_HLSQ_VS_CONTROL_REG_SSBO_ENABLE			0x00008000
35878c2ecf20Sopenharmony_ci#define A4XX_HLSQ_VS_CONTROL_REG_ENABLED			0x00010000
35888c2ecf20Sopenharmony_ci#define A4XX_HLSQ_VS_CONTROL_REG_SHADEROBJOFFSET__MASK		0x00fe0000
35898c2ecf20Sopenharmony_ci#define A4XX_HLSQ_VS_CONTROL_REG_SHADEROBJOFFSET__SHIFT		17
35908c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_VS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
35918c2ecf20Sopenharmony_ci{
35928c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_VS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_VS_CONTROL_REG_SHADEROBJOFFSET__MASK;
35938c2ecf20Sopenharmony_ci}
35948c2ecf20Sopenharmony_ci#define A4XX_HLSQ_VS_CONTROL_REG_INSTRLENGTH__MASK		0xff000000
35958c2ecf20Sopenharmony_ci#define A4XX_HLSQ_VS_CONTROL_REG_INSTRLENGTH__SHIFT		24
35968c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_VS_CONTROL_REG_INSTRLENGTH(uint32_t val)
35978c2ecf20Sopenharmony_ci{
35988c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_VS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_VS_CONTROL_REG_INSTRLENGTH__MASK;
35998c2ecf20Sopenharmony_ci}
36008c2ecf20Sopenharmony_ci
36018c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_FS_CONTROL_REG				0x000023c6
36028c2ecf20Sopenharmony_ci#define A4XX_HLSQ_FS_CONTROL_REG_CONSTLENGTH__MASK		0x000000ff
36038c2ecf20Sopenharmony_ci#define A4XX_HLSQ_FS_CONTROL_REG_CONSTLENGTH__SHIFT		0
36048c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_FS_CONTROL_REG_CONSTLENGTH(uint32_t val)
36058c2ecf20Sopenharmony_ci{
36068c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_FS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_FS_CONTROL_REG_CONSTLENGTH__MASK;
36078c2ecf20Sopenharmony_ci}
36088c2ecf20Sopenharmony_ci#define A4XX_HLSQ_FS_CONTROL_REG_CONSTOBJECTOFFSET__MASK	0x00007f00
36098c2ecf20Sopenharmony_ci#define A4XX_HLSQ_FS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT	8
36108c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_FS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
36118c2ecf20Sopenharmony_ci{
36128c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_FS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_FS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
36138c2ecf20Sopenharmony_ci}
36148c2ecf20Sopenharmony_ci#define A4XX_HLSQ_FS_CONTROL_REG_SSBO_ENABLE			0x00008000
36158c2ecf20Sopenharmony_ci#define A4XX_HLSQ_FS_CONTROL_REG_ENABLED			0x00010000
36168c2ecf20Sopenharmony_ci#define A4XX_HLSQ_FS_CONTROL_REG_SHADEROBJOFFSET__MASK		0x00fe0000
36178c2ecf20Sopenharmony_ci#define A4XX_HLSQ_FS_CONTROL_REG_SHADEROBJOFFSET__SHIFT		17
36188c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_FS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
36198c2ecf20Sopenharmony_ci{
36208c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_FS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_FS_CONTROL_REG_SHADEROBJOFFSET__MASK;
36218c2ecf20Sopenharmony_ci}
36228c2ecf20Sopenharmony_ci#define A4XX_HLSQ_FS_CONTROL_REG_INSTRLENGTH__MASK		0xff000000
36238c2ecf20Sopenharmony_ci#define A4XX_HLSQ_FS_CONTROL_REG_INSTRLENGTH__SHIFT		24
36248c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_FS_CONTROL_REG_INSTRLENGTH(uint32_t val)
36258c2ecf20Sopenharmony_ci{
36268c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_FS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_FS_CONTROL_REG_INSTRLENGTH__MASK;
36278c2ecf20Sopenharmony_ci}
36288c2ecf20Sopenharmony_ci
36298c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_HS_CONTROL_REG				0x000023c7
36308c2ecf20Sopenharmony_ci#define A4XX_HLSQ_HS_CONTROL_REG_CONSTLENGTH__MASK		0x000000ff
36318c2ecf20Sopenharmony_ci#define A4XX_HLSQ_HS_CONTROL_REG_CONSTLENGTH__SHIFT		0
36328c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_HS_CONTROL_REG_CONSTLENGTH(uint32_t val)
36338c2ecf20Sopenharmony_ci{
36348c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_HS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_HS_CONTROL_REG_CONSTLENGTH__MASK;
36358c2ecf20Sopenharmony_ci}
36368c2ecf20Sopenharmony_ci#define A4XX_HLSQ_HS_CONTROL_REG_CONSTOBJECTOFFSET__MASK	0x00007f00
36378c2ecf20Sopenharmony_ci#define A4XX_HLSQ_HS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT	8
36388c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_HS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
36398c2ecf20Sopenharmony_ci{
36408c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_HS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_HS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
36418c2ecf20Sopenharmony_ci}
36428c2ecf20Sopenharmony_ci#define A4XX_HLSQ_HS_CONTROL_REG_SSBO_ENABLE			0x00008000
36438c2ecf20Sopenharmony_ci#define A4XX_HLSQ_HS_CONTROL_REG_ENABLED			0x00010000
36448c2ecf20Sopenharmony_ci#define A4XX_HLSQ_HS_CONTROL_REG_SHADEROBJOFFSET__MASK		0x00fe0000
36458c2ecf20Sopenharmony_ci#define A4XX_HLSQ_HS_CONTROL_REG_SHADEROBJOFFSET__SHIFT		17
36468c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_HS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
36478c2ecf20Sopenharmony_ci{
36488c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_HS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_HS_CONTROL_REG_SHADEROBJOFFSET__MASK;
36498c2ecf20Sopenharmony_ci}
36508c2ecf20Sopenharmony_ci#define A4XX_HLSQ_HS_CONTROL_REG_INSTRLENGTH__MASK		0xff000000
36518c2ecf20Sopenharmony_ci#define A4XX_HLSQ_HS_CONTROL_REG_INSTRLENGTH__SHIFT		24
36528c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_HS_CONTROL_REG_INSTRLENGTH(uint32_t val)
36538c2ecf20Sopenharmony_ci{
36548c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_HS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_HS_CONTROL_REG_INSTRLENGTH__MASK;
36558c2ecf20Sopenharmony_ci}
36568c2ecf20Sopenharmony_ci
36578c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_DS_CONTROL_REG				0x000023c8
36588c2ecf20Sopenharmony_ci#define A4XX_HLSQ_DS_CONTROL_REG_CONSTLENGTH__MASK		0x000000ff
36598c2ecf20Sopenharmony_ci#define A4XX_HLSQ_DS_CONTROL_REG_CONSTLENGTH__SHIFT		0
36608c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_DS_CONTROL_REG_CONSTLENGTH(uint32_t val)
36618c2ecf20Sopenharmony_ci{
36628c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_DS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_DS_CONTROL_REG_CONSTLENGTH__MASK;
36638c2ecf20Sopenharmony_ci}
36648c2ecf20Sopenharmony_ci#define A4XX_HLSQ_DS_CONTROL_REG_CONSTOBJECTOFFSET__MASK	0x00007f00
36658c2ecf20Sopenharmony_ci#define A4XX_HLSQ_DS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT	8
36668c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_DS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
36678c2ecf20Sopenharmony_ci{
36688c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_DS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_DS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
36698c2ecf20Sopenharmony_ci}
36708c2ecf20Sopenharmony_ci#define A4XX_HLSQ_DS_CONTROL_REG_SSBO_ENABLE			0x00008000
36718c2ecf20Sopenharmony_ci#define A4XX_HLSQ_DS_CONTROL_REG_ENABLED			0x00010000
36728c2ecf20Sopenharmony_ci#define A4XX_HLSQ_DS_CONTROL_REG_SHADEROBJOFFSET__MASK		0x00fe0000
36738c2ecf20Sopenharmony_ci#define A4XX_HLSQ_DS_CONTROL_REG_SHADEROBJOFFSET__SHIFT		17
36748c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_DS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
36758c2ecf20Sopenharmony_ci{
36768c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_DS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_DS_CONTROL_REG_SHADEROBJOFFSET__MASK;
36778c2ecf20Sopenharmony_ci}
36788c2ecf20Sopenharmony_ci#define A4XX_HLSQ_DS_CONTROL_REG_INSTRLENGTH__MASK		0xff000000
36798c2ecf20Sopenharmony_ci#define A4XX_HLSQ_DS_CONTROL_REG_INSTRLENGTH__SHIFT		24
36808c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_DS_CONTROL_REG_INSTRLENGTH(uint32_t val)
36818c2ecf20Sopenharmony_ci{
36828c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_DS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_DS_CONTROL_REG_INSTRLENGTH__MASK;
36838c2ecf20Sopenharmony_ci}
36848c2ecf20Sopenharmony_ci
36858c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_GS_CONTROL_REG				0x000023c9
36868c2ecf20Sopenharmony_ci#define A4XX_HLSQ_GS_CONTROL_REG_CONSTLENGTH__MASK		0x000000ff
36878c2ecf20Sopenharmony_ci#define A4XX_HLSQ_GS_CONTROL_REG_CONSTLENGTH__SHIFT		0
36888c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_GS_CONTROL_REG_CONSTLENGTH(uint32_t val)
36898c2ecf20Sopenharmony_ci{
36908c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_GS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_GS_CONTROL_REG_CONSTLENGTH__MASK;
36918c2ecf20Sopenharmony_ci}
36928c2ecf20Sopenharmony_ci#define A4XX_HLSQ_GS_CONTROL_REG_CONSTOBJECTOFFSET__MASK	0x00007f00
36938c2ecf20Sopenharmony_ci#define A4XX_HLSQ_GS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT	8
36948c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_GS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
36958c2ecf20Sopenharmony_ci{
36968c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_GS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_GS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
36978c2ecf20Sopenharmony_ci}
36988c2ecf20Sopenharmony_ci#define A4XX_HLSQ_GS_CONTROL_REG_SSBO_ENABLE			0x00008000
36998c2ecf20Sopenharmony_ci#define A4XX_HLSQ_GS_CONTROL_REG_ENABLED			0x00010000
37008c2ecf20Sopenharmony_ci#define A4XX_HLSQ_GS_CONTROL_REG_SHADEROBJOFFSET__MASK		0x00fe0000
37018c2ecf20Sopenharmony_ci#define A4XX_HLSQ_GS_CONTROL_REG_SHADEROBJOFFSET__SHIFT		17
37028c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_GS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
37038c2ecf20Sopenharmony_ci{
37048c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_GS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_GS_CONTROL_REG_SHADEROBJOFFSET__MASK;
37058c2ecf20Sopenharmony_ci}
37068c2ecf20Sopenharmony_ci#define A4XX_HLSQ_GS_CONTROL_REG_INSTRLENGTH__MASK		0xff000000
37078c2ecf20Sopenharmony_ci#define A4XX_HLSQ_GS_CONTROL_REG_INSTRLENGTH__SHIFT		24
37088c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_GS_CONTROL_REG_INSTRLENGTH(uint32_t val)
37098c2ecf20Sopenharmony_ci{
37108c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_GS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_GS_CONTROL_REG_INSTRLENGTH__MASK;
37118c2ecf20Sopenharmony_ci}
37128c2ecf20Sopenharmony_ci
37138c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CS_CONTROL_REG				0x000023ca
37148c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CS_CONTROL_REG_CONSTLENGTH__MASK		0x000000ff
37158c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CS_CONTROL_REG_CONSTLENGTH__SHIFT		0
37168c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CS_CONTROL_REG_CONSTLENGTH(uint32_t val)
37178c2ecf20Sopenharmony_ci{
37188c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CS_CONTROL_REG_CONSTLENGTH__SHIFT) & A4XX_HLSQ_CS_CONTROL_REG_CONSTLENGTH__MASK;
37198c2ecf20Sopenharmony_ci}
37208c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CS_CONTROL_REG_CONSTOBJECTOFFSET__MASK	0x00007f00
37218c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT	8
37228c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CS_CONTROL_REG_CONSTOBJECTOFFSET(uint32_t val)
37238c2ecf20Sopenharmony_ci{
37248c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CS_CONTROL_REG_CONSTOBJECTOFFSET__SHIFT) & A4XX_HLSQ_CS_CONTROL_REG_CONSTOBJECTOFFSET__MASK;
37258c2ecf20Sopenharmony_ci}
37268c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CS_CONTROL_REG_SSBO_ENABLE			0x00008000
37278c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CS_CONTROL_REG_ENABLED			0x00010000
37288c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CS_CONTROL_REG_SHADEROBJOFFSET__MASK		0x00fe0000
37298c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CS_CONTROL_REG_SHADEROBJOFFSET__SHIFT		17
37308c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CS_CONTROL_REG_SHADEROBJOFFSET(uint32_t val)
37318c2ecf20Sopenharmony_ci{
37328c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CS_CONTROL_REG_SHADEROBJOFFSET__SHIFT) & A4XX_HLSQ_CS_CONTROL_REG_SHADEROBJOFFSET__MASK;
37338c2ecf20Sopenharmony_ci}
37348c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CS_CONTROL_REG_INSTRLENGTH__MASK		0xff000000
37358c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CS_CONTROL_REG_INSTRLENGTH__SHIFT		24
37368c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CS_CONTROL_REG_INSTRLENGTH(uint32_t val)
37378c2ecf20Sopenharmony_ci{
37388c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CS_CONTROL_REG_INSTRLENGTH__SHIFT) & A4XX_HLSQ_CS_CONTROL_REG_INSTRLENGTH__MASK;
37398c2ecf20Sopenharmony_ci}
37408c2ecf20Sopenharmony_ci
37418c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_NDRANGE_0				0x000023cd
37428c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_0_KERNELDIM__MASK			0x00000003
37438c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_0_KERNELDIM__SHIFT			0
37448c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CL_NDRANGE_0_KERNELDIM(uint32_t val)
37458c2ecf20Sopenharmony_ci{
37468c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CL_NDRANGE_0_KERNELDIM__SHIFT) & A4XX_HLSQ_CL_NDRANGE_0_KERNELDIM__MASK;
37478c2ecf20Sopenharmony_ci}
37488c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEX__MASK			0x00000ffc
37498c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEX__SHIFT		2
37508c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEX(uint32_t val)
37518c2ecf20Sopenharmony_ci{
37528c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEX__SHIFT) & A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEX__MASK;
37538c2ecf20Sopenharmony_ci}
37548c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEY__MASK			0x003ff000
37558c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEY__SHIFT		12
37568c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEY(uint32_t val)
37578c2ecf20Sopenharmony_ci{
37588c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEY__SHIFT) & A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEY__MASK;
37598c2ecf20Sopenharmony_ci}
37608c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEZ__MASK			0xffc00000
37618c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEZ__SHIFT		22
37628c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEZ(uint32_t val)
37638c2ecf20Sopenharmony_ci{
37648c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEZ__SHIFT) & A4XX_HLSQ_CL_NDRANGE_0_LOCALSIZEZ__MASK;
37658c2ecf20Sopenharmony_ci}
37668c2ecf20Sopenharmony_ci
37678c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_NDRANGE_1				0x000023ce
37688c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_1_SIZE_X__MASK			0xffffffff
37698c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_1_SIZE_X__SHIFT			0
37708c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CL_NDRANGE_1_SIZE_X(uint32_t val)
37718c2ecf20Sopenharmony_ci{
37728c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CL_NDRANGE_1_SIZE_X__SHIFT) & A4XX_HLSQ_CL_NDRANGE_1_SIZE_X__MASK;
37738c2ecf20Sopenharmony_ci}
37748c2ecf20Sopenharmony_ci
37758c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_NDRANGE_2				0x000023cf
37768c2ecf20Sopenharmony_ci
37778c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_NDRANGE_3				0x000023d0
37788c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_3_SIZE_Y__MASK			0xffffffff
37798c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_3_SIZE_Y__SHIFT			0
37808c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CL_NDRANGE_3_SIZE_Y(uint32_t val)
37818c2ecf20Sopenharmony_ci{
37828c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CL_NDRANGE_3_SIZE_Y__SHIFT) & A4XX_HLSQ_CL_NDRANGE_3_SIZE_Y__MASK;
37838c2ecf20Sopenharmony_ci}
37848c2ecf20Sopenharmony_ci
37858c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_NDRANGE_4				0x000023d1
37868c2ecf20Sopenharmony_ci
37878c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_NDRANGE_5				0x000023d2
37888c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_5_SIZE_Z__MASK			0xffffffff
37898c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_NDRANGE_5_SIZE_Z__SHIFT			0
37908c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CL_NDRANGE_5_SIZE_Z(uint32_t val)
37918c2ecf20Sopenharmony_ci{
37928c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CL_NDRANGE_5_SIZE_Z__SHIFT) & A4XX_HLSQ_CL_NDRANGE_5_SIZE_Z__MASK;
37938c2ecf20Sopenharmony_ci}
37948c2ecf20Sopenharmony_ci
37958c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_NDRANGE_6				0x000023d3
37968c2ecf20Sopenharmony_ci
37978c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_CONTROL_0				0x000023d4
37988c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_CONTROL_0_WGIDCONSTID__MASK		0x000000ff
37998c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_CONTROL_0_WGIDCONSTID__SHIFT		0
38008c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CL_CONTROL_0_WGIDCONSTID(uint32_t val)
38018c2ecf20Sopenharmony_ci{
38028c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CL_CONTROL_0_WGIDCONSTID__SHIFT) & A4XX_HLSQ_CL_CONTROL_0_WGIDCONSTID__MASK;
38038c2ecf20Sopenharmony_ci}
38048c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_CONTROL_0_LOCALIDREGID__MASK		0xff000000
38058c2ecf20Sopenharmony_ci#define A4XX_HLSQ_CL_CONTROL_0_LOCALIDREGID__SHIFT		24
38068c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_HLSQ_CL_CONTROL_0_LOCALIDREGID(uint32_t val)
38078c2ecf20Sopenharmony_ci{
38088c2ecf20Sopenharmony_ci	return ((val) << A4XX_HLSQ_CL_CONTROL_0_LOCALIDREGID__SHIFT) & A4XX_HLSQ_CL_CONTROL_0_LOCALIDREGID__MASK;
38098c2ecf20Sopenharmony_ci}
38108c2ecf20Sopenharmony_ci
38118c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_CONTROL_1				0x000023d5
38128c2ecf20Sopenharmony_ci
38138c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_KERNEL_CONST				0x000023d6
38148c2ecf20Sopenharmony_ci
38158c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_KERNEL_GROUP_X				0x000023d7
38168c2ecf20Sopenharmony_ci
38178c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_KERNEL_GROUP_Y				0x000023d8
38188c2ecf20Sopenharmony_ci
38198c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_KERNEL_GROUP_Z				0x000023d9
38208c2ecf20Sopenharmony_ci
38218c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_CL_WG_OFFSET				0x000023da
38228c2ecf20Sopenharmony_ci
38238c2ecf20Sopenharmony_ci#define REG_A4XX_HLSQ_UPDATE_CONTROL				0x000023db
38248c2ecf20Sopenharmony_ci
38258c2ecf20Sopenharmony_ci#define REG_A4XX_PC_BINNING_COMMAND				0x00000d00
38268c2ecf20Sopenharmony_ci#define A4XX_PC_BINNING_COMMAND_BINNING_ENABLE			0x00000001
38278c2ecf20Sopenharmony_ci
38288c2ecf20Sopenharmony_ci#define REG_A4XX_PC_TESSFACTOR_ADDR				0x00000d08
38298c2ecf20Sopenharmony_ci
38308c2ecf20Sopenharmony_ci#define REG_A4XX_PC_DRAWCALL_SETUP_OVERRIDE			0x00000d0c
38318c2ecf20Sopenharmony_ci
38328c2ecf20Sopenharmony_ci#define REG_A4XX_PC_PERFCTR_PC_SEL_0				0x00000d10
38338c2ecf20Sopenharmony_ci
38348c2ecf20Sopenharmony_ci#define REG_A4XX_PC_PERFCTR_PC_SEL_1				0x00000d11
38358c2ecf20Sopenharmony_ci
38368c2ecf20Sopenharmony_ci#define REG_A4XX_PC_PERFCTR_PC_SEL_2				0x00000d12
38378c2ecf20Sopenharmony_ci
38388c2ecf20Sopenharmony_ci#define REG_A4XX_PC_PERFCTR_PC_SEL_3				0x00000d13
38398c2ecf20Sopenharmony_ci
38408c2ecf20Sopenharmony_ci#define REG_A4XX_PC_PERFCTR_PC_SEL_4				0x00000d14
38418c2ecf20Sopenharmony_ci
38428c2ecf20Sopenharmony_ci#define REG_A4XX_PC_PERFCTR_PC_SEL_5				0x00000d15
38438c2ecf20Sopenharmony_ci
38448c2ecf20Sopenharmony_ci#define REG_A4XX_PC_PERFCTR_PC_SEL_6				0x00000d16
38458c2ecf20Sopenharmony_ci
38468c2ecf20Sopenharmony_ci#define REG_A4XX_PC_PERFCTR_PC_SEL_7				0x00000d17
38478c2ecf20Sopenharmony_ci
38488c2ecf20Sopenharmony_ci#define REG_A4XX_PC_BIN_BASE					0x000021c0
38498c2ecf20Sopenharmony_ci
38508c2ecf20Sopenharmony_ci#define REG_A4XX_PC_VSTREAM_CONTROL				0x000021c2
38518c2ecf20Sopenharmony_ci#define A4XX_PC_VSTREAM_CONTROL_SIZE__MASK			0x003f0000
38528c2ecf20Sopenharmony_ci#define A4XX_PC_VSTREAM_CONTROL_SIZE__SHIFT			16
38538c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_PC_VSTREAM_CONTROL_SIZE(uint32_t val)
38548c2ecf20Sopenharmony_ci{
38558c2ecf20Sopenharmony_ci	return ((val) << A4XX_PC_VSTREAM_CONTROL_SIZE__SHIFT) & A4XX_PC_VSTREAM_CONTROL_SIZE__MASK;
38568c2ecf20Sopenharmony_ci}
38578c2ecf20Sopenharmony_ci#define A4XX_PC_VSTREAM_CONTROL_N__MASK				0x07c00000
38588c2ecf20Sopenharmony_ci#define A4XX_PC_VSTREAM_CONTROL_N__SHIFT			22
38598c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_PC_VSTREAM_CONTROL_N(uint32_t val)
38608c2ecf20Sopenharmony_ci{
38618c2ecf20Sopenharmony_ci	return ((val) << A4XX_PC_VSTREAM_CONTROL_N__SHIFT) & A4XX_PC_VSTREAM_CONTROL_N__MASK;
38628c2ecf20Sopenharmony_ci}
38638c2ecf20Sopenharmony_ci
38648c2ecf20Sopenharmony_ci#define REG_A4XX_PC_PRIM_VTX_CNTL				0x000021c4
38658c2ecf20Sopenharmony_ci#define A4XX_PC_PRIM_VTX_CNTL_VAROUT__MASK			0x0000000f
38668c2ecf20Sopenharmony_ci#define A4XX_PC_PRIM_VTX_CNTL_VAROUT__SHIFT			0
38678c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_PC_PRIM_VTX_CNTL_VAROUT(uint32_t val)
38688c2ecf20Sopenharmony_ci{
38698c2ecf20Sopenharmony_ci	return ((val) << A4XX_PC_PRIM_VTX_CNTL_VAROUT__SHIFT) & A4XX_PC_PRIM_VTX_CNTL_VAROUT__MASK;
38708c2ecf20Sopenharmony_ci}
38718c2ecf20Sopenharmony_ci#define A4XX_PC_PRIM_VTX_CNTL_PRIMITIVE_RESTART			0x00100000
38728c2ecf20Sopenharmony_ci#define A4XX_PC_PRIM_VTX_CNTL_PROVOKING_VTX_LAST		0x02000000
38738c2ecf20Sopenharmony_ci#define A4XX_PC_PRIM_VTX_CNTL_PSIZE				0x04000000
38748c2ecf20Sopenharmony_ci
38758c2ecf20Sopenharmony_ci#define REG_A4XX_PC_PRIM_VTX_CNTL2				0x000021c5
38768c2ecf20Sopenharmony_ci#define A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_FRONT_PTYPE__MASK	0x00000007
38778c2ecf20Sopenharmony_ci#define A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_FRONT_PTYPE__SHIFT	0
38788c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_FRONT_PTYPE(enum adreno_pa_su_sc_draw val)
38798c2ecf20Sopenharmony_ci{
38808c2ecf20Sopenharmony_ci	return ((val) << A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_FRONT_PTYPE__SHIFT) & A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_FRONT_PTYPE__MASK;
38818c2ecf20Sopenharmony_ci}
38828c2ecf20Sopenharmony_ci#define A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_BACK_PTYPE__MASK	0x00000038
38838c2ecf20Sopenharmony_ci#define A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_BACK_PTYPE__SHIFT	3
38848c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_BACK_PTYPE(enum adreno_pa_su_sc_draw val)
38858c2ecf20Sopenharmony_ci{
38868c2ecf20Sopenharmony_ci	return ((val) << A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_BACK_PTYPE__SHIFT) & A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_BACK_PTYPE__MASK;
38878c2ecf20Sopenharmony_ci}
38888c2ecf20Sopenharmony_ci#define A4XX_PC_PRIM_VTX_CNTL2_POLYMODE_ENABLE			0x00000040
38898c2ecf20Sopenharmony_ci
38908c2ecf20Sopenharmony_ci#define REG_A4XX_PC_RESTART_INDEX				0x000021c6
38918c2ecf20Sopenharmony_ci
38928c2ecf20Sopenharmony_ci#define REG_A4XX_PC_GS_PARAM					0x000021e5
38938c2ecf20Sopenharmony_ci#define A4XX_PC_GS_PARAM_MAX_VERTICES__MASK			0x000003ff
38948c2ecf20Sopenharmony_ci#define A4XX_PC_GS_PARAM_MAX_VERTICES__SHIFT			0
38958c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_PC_GS_PARAM_MAX_VERTICES(uint32_t val)
38968c2ecf20Sopenharmony_ci{
38978c2ecf20Sopenharmony_ci	return ((val) << A4XX_PC_GS_PARAM_MAX_VERTICES__SHIFT) & A4XX_PC_GS_PARAM_MAX_VERTICES__MASK;
38988c2ecf20Sopenharmony_ci}
38998c2ecf20Sopenharmony_ci#define A4XX_PC_GS_PARAM_INVOCATIONS__MASK			0x0000f800
39008c2ecf20Sopenharmony_ci#define A4XX_PC_GS_PARAM_INVOCATIONS__SHIFT			11
39018c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_PC_GS_PARAM_INVOCATIONS(uint32_t val)
39028c2ecf20Sopenharmony_ci{
39038c2ecf20Sopenharmony_ci	return ((val) << A4XX_PC_GS_PARAM_INVOCATIONS__SHIFT) & A4XX_PC_GS_PARAM_INVOCATIONS__MASK;
39048c2ecf20Sopenharmony_ci}
39058c2ecf20Sopenharmony_ci#define A4XX_PC_GS_PARAM_PRIMTYPE__MASK				0x01800000
39068c2ecf20Sopenharmony_ci#define A4XX_PC_GS_PARAM_PRIMTYPE__SHIFT			23
39078c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_PC_GS_PARAM_PRIMTYPE(enum adreno_pa_su_sc_draw val)
39088c2ecf20Sopenharmony_ci{
39098c2ecf20Sopenharmony_ci	return ((val) << A4XX_PC_GS_PARAM_PRIMTYPE__SHIFT) & A4XX_PC_GS_PARAM_PRIMTYPE__MASK;
39108c2ecf20Sopenharmony_ci}
39118c2ecf20Sopenharmony_ci#define A4XX_PC_GS_PARAM_LAYER					0x80000000
39128c2ecf20Sopenharmony_ci
39138c2ecf20Sopenharmony_ci#define REG_A4XX_PC_HS_PARAM					0x000021e7
39148c2ecf20Sopenharmony_ci#define A4XX_PC_HS_PARAM_VERTICES_OUT__MASK			0x0000003f
39158c2ecf20Sopenharmony_ci#define A4XX_PC_HS_PARAM_VERTICES_OUT__SHIFT			0
39168c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_PC_HS_PARAM_VERTICES_OUT(uint32_t val)
39178c2ecf20Sopenharmony_ci{
39188c2ecf20Sopenharmony_ci	return ((val) << A4XX_PC_HS_PARAM_VERTICES_OUT__SHIFT) & A4XX_PC_HS_PARAM_VERTICES_OUT__MASK;
39198c2ecf20Sopenharmony_ci}
39208c2ecf20Sopenharmony_ci#define A4XX_PC_HS_PARAM_SPACING__MASK				0x00600000
39218c2ecf20Sopenharmony_ci#define A4XX_PC_HS_PARAM_SPACING__SHIFT				21
39228c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_PC_HS_PARAM_SPACING(enum a4xx_tess_spacing val)
39238c2ecf20Sopenharmony_ci{
39248c2ecf20Sopenharmony_ci	return ((val) << A4XX_PC_HS_PARAM_SPACING__SHIFT) & A4XX_PC_HS_PARAM_SPACING__MASK;
39258c2ecf20Sopenharmony_ci}
39268c2ecf20Sopenharmony_ci#define A4XX_PC_HS_PARAM_CW					0x00800000
39278c2ecf20Sopenharmony_ci#define A4XX_PC_HS_PARAM_CONNECTED				0x01000000
39288c2ecf20Sopenharmony_ci
39298c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_VERSION					0x00003000
39308c2ecf20Sopenharmony_ci
39318c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_CLKON					0x00003001
39328c2ecf20Sopenharmony_ci#define A4XX_VBIF_CLKON_FORCE_ON_TESTBUS			0x00000001
39338c2ecf20Sopenharmony_ci
39348c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_ABIT_SORT					0x0000301c
39358c2ecf20Sopenharmony_ci
39368c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_ABIT_SORT_CONF				0x0000301d
39378c2ecf20Sopenharmony_ci
39388c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_GATE_OFF_WRREQ_EN				0x0000302a
39398c2ecf20Sopenharmony_ci
39408c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_IN_RD_LIM_CONF0				0x0000302c
39418c2ecf20Sopenharmony_ci
39428c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_IN_RD_LIM_CONF1				0x0000302d
39438c2ecf20Sopenharmony_ci
39448c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_IN_WR_LIM_CONF0				0x00003030
39458c2ecf20Sopenharmony_ci
39468c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_IN_WR_LIM_CONF1				0x00003031
39478c2ecf20Sopenharmony_ci
39488c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_ROUND_ROBIN_QOS_ARB			0x00003049
39498c2ecf20Sopenharmony_ci
39508c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_EN0				0x000030c0
39518c2ecf20Sopenharmony_ci
39528c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_EN1				0x000030c1
39538c2ecf20Sopenharmony_ci
39548c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_EN2				0x000030c2
39558c2ecf20Sopenharmony_ci
39568c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_EN3				0x000030c3
39578c2ecf20Sopenharmony_ci
39588c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_SEL0				0x000030d0
39598c2ecf20Sopenharmony_ci
39608c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_SEL1				0x000030d1
39618c2ecf20Sopenharmony_ci
39628c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_SEL2				0x000030d2
39638c2ecf20Sopenharmony_ci
39648c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_SEL3				0x000030d3
39658c2ecf20Sopenharmony_ci
39668c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_LOW0				0x000030d8
39678c2ecf20Sopenharmony_ci
39688c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_LOW1				0x000030d9
39698c2ecf20Sopenharmony_ci
39708c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_LOW2				0x000030da
39718c2ecf20Sopenharmony_ci
39728c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_LOW3				0x000030db
39738c2ecf20Sopenharmony_ci
39748c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_HIGH0				0x000030e0
39758c2ecf20Sopenharmony_ci
39768c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_HIGH1				0x000030e1
39778c2ecf20Sopenharmony_ci
39788c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_HIGH2				0x000030e2
39798c2ecf20Sopenharmony_ci
39808c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_CNT_HIGH3				0x000030e3
39818c2ecf20Sopenharmony_ci
39828c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_PWR_CNT_EN0				0x00003100
39838c2ecf20Sopenharmony_ci
39848c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_PWR_CNT_EN1				0x00003101
39858c2ecf20Sopenharmony_ci
39868c2ecf20Sopenharmony_ci#define REG_A4XX_VBIF_PERF_PWR_CNT_EN2				0x00003102
39878c2ecf20Sopenharmony_ci
39888c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_0CC5					0x00000cc5
39898c2ecf20Sopenharmony_ci
39908c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_0CC6					0x00000cc6
39918c2ecf20Sopenharmony_ci
39928c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_0D01					0x00000d01
39938c2ecf20Sopenharmony_ci
39948c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_0E42					0x00000e42
39958c2ecf20Sopenharmony_ci
39968c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_0EC2					0x00000ec2
39978c2ecf20Sopenharmony_ci
39988c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_2001					0x00002001
39998c2ecf20Sopenharmony_ci
40008c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_209B					0x0000209b
40018c2ecf20Sopenharmony_ci
40028c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_20EF					0x000020ef
40038c2ecf20Sopenharmony_ci
40048c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_2152					0x00002152
40058c2ecf20Sopenharmony_ci
40068c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_2153					0x00002153
40078c2ecf20Sopenharmony_ci
40088c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_2154					0x00002154
40098c2ecf20Sopenharmony_ci
40108c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_2155					0x00002155
40118c2ecf20Sopenharmony_ci
40128c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_2156					0x00002156
40138c2ecf20Sopenharmony_ci
40148c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_2157					0x00002157
40158c2ecf20Sopenharmony_ci
40168c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_21C3					0x000021c3
40178c2ecf20Sopenharmony_ci
40188c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_21E6					0x000021e6
40198c2ecf20Sopenharmony_ci
40208c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_2209					0x00002209
40218c2ecf20Sopenharmony_ci
40228c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_22D7					0x000022d7
40238c2ecf20Sopenharmony_ci
40248c2ecf20Sopenharmony_ci#define REG_A4XX_UNKNOWN_2352					0x00002352
40258c2ecf20Sopenharmony_ci
40268c2ecf20Sopenharmony_ci#define REG_A4XX_TEX_SAMP_0					0x00000000
40278c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_MIPFILTER_LINEAR_NEAR			0x00000001
40288c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_XY_MAG__MASK				0x00000006
40298c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_XY_MAG__SHIFT				1
40308c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_SAMP_0_XY_MAG(enum a4xx_tex_filter val)
40318c2ecf20Sopenharmony_ci{
40328c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_SAMP_0_XY_MAG__SHIFT) & A4XX_TEX_SAMP_0_XY_MAG__MASK;
40338c2ecf20Sopenharmony_ci}
40348c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_XY_MIN__MASK				0x00000018
40358c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_XY_MIN__SHIFT				3
40368c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_SAMP_0_XY_MIN(enum a4xx_tex_filter val)
40378c2ecf20Sopenharmony_ci{
40388c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_SAMP_0_XY_MIN__SHIFT) & A4XX_TEX_SAMP_0_XY_MIN__MASK;
40398c2ecf20Sopenharmony_ci}
40408c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_WRAP_S__MASK				0x000000e0
40418c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_WRAP_S__SHIFT				5
40428c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_SAMP_0_WRAP_S(enum a4xx_tex_clamp val)
40438c2ecf20Sopenharmony_ci{
40448c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_SAMP_0_WRAP_S__SHIFT) & A4XX_TEX_SAMP_0_WRAP_S__MASK;
40458c2ecf20Sopenharmony_ci}
40468c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_WRAP_T__MASK				0x00000700
40478c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_WRAP_T__SHIFT				8
40488c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_SAMP_0_WRAP_T(enum a4xx_tex_clamp val)
40498c2ecf20Sopenharmony_ci{
40508c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_SAMP_0_WRAP_T__SHIFT) & A4XX_TEX_SAMP_0_WRAP_T__MASK;
40518c2ecf20Sopenharmony_ci}
40528c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_WRAP_R__MASK				0x00003800
40538c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_WRAP_R__SHIFT				11
40548c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_SAMP_0_WRAP_R(enum a4xx_tex_clamp val)
40558c2ecf20Sopenharmony_ci{
40568c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_SAMP_0_WRAP_R__SHIFT) & A4XX_TEX_SAMP_0_WRAP_R__MASK;
40578c2ecf20Sopenharmony_ci}
40588c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_ANISO__MASK				0x0001c000
40598c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_ANISO__SHIFT				14
40608c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_SAMP_0_ANISO(enum a4xx_tex_aniso val)
40618c2ecf20Sopenharmony_ci{
40628c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_SAMP_0_ANISO__SHIFT) & A4XX_TEX_SAMP_0_ANISO__MASK;
40638c2ecf20Sopenharmony_ci}
40648c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_LOD_BIAS__MASK				0xfff80000
40658c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_0_LOD_BIAS__SHIFT				19
40668c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_SAMP_0_LOD_BIAS(float val)
40678c2ecf20Sopenharmony_ci{
40688c2ecf20Sopenharmony_ci	return ((((int32_t)(val * 256.0))) << A4XX_TEX_SAMP_0_LOD_BIAS__SHIFT) & A4XX_TEX_SAMP_0_LOD_BIAS__MASK;
40698c2ecf20Sopenharmony_ci}
40708c2ecf20Sopenharmony_ci
40718c2ecf20Sopenharmony_ci#define REG_A4XX_TEX_SAMP_1					0x00000001
40728c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_1_COMPARE_FUNC__MASK			0x0000000e
40738c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_1_COMPARE_FUNC__SHIFT			1
40748c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_SAMP_1_COMPARE_FUNC(enum adreno_compare_func val)
40758c2ecf20Sopenharmony_ci{
40768c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_SAMP_1_COMPARE_FUNC__SHIFT) & A4XX_TEX_SAMP_1_COMPARE_FUNC__MASK;
40778c2ecf20Sopenharmony_ci}
40788c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_1_CUBEMAPSEAMLESSFILTOFF			0x00000010
40798c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_1_UNNORM_COORDS				0x00000020
40808c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_1_MIPFILTER_LINEAR_FAR			0x00000040
40818c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_1_MAX_LOD__MASK				0x000fff00
40828c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_1_MAX_LOD__SHIFT				8
40838c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_SAMP_1_MAX_LOD(float val)
40848c2ecf20Sopenharmony_ci{
40858c2ecf20Sopenharmony_ci	return ((((uint32_t)(val * 256.0))) << A4XX_TEX_SAMP_1_MAX_LOD__SHIFT) & A4XX_TEX_SAMP_1_MAX_LOD__MASK;
40868c2ecf20Sopenharmony_ci}
40878c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_1_MIN_LOD__MASK				0xfff00000
40888c2ecf20Sopenharmony_ci#define A4XX_TEX_SAMP_1_MIN_LOD__SHIFT				20
40898c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_SAMP_1_MIN_LOD(float val)
40908c2ecf20Sopenharmony_ci{
40918c2ecf20Sopenharmony_ci	return ((((uint32_t)(val * 256.0))) << A4XX_TEX_SAMP_1_MIN_LOD__SHIFT) & A4XX_TEX_SAMP_1_MIN_LOD__MASK;
40928c2ecf20Sopenharmony_ci}
40938c2ecf20Sopenharmony_ci
40948c2ecf20Sopenharmony_ci#define REG_A4XX_TEX_CONST_0					0x00000000
40958c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_TILED					0x00000001
40968c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_SRGB					0x00000004
40978c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_SWIZ_X__MASK				0x00000070
40988c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_SWIZ_X__SHIFT				4
40998c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_0_SWIZ_X(enum a4xx_tex_swiz val)
41008c2ecf20Sopenharmony_ci{
41018c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_0_SWIZ_X__SHIFT) & A4XX_TEX_CONST_0_SWIZ_X__MASK;
41028c2ecf20Sopenharmony_ci}
41038c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_SWIZ_Y__MASK				0x00000380
41048c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_SWIZ_Y__SHIFT				7
41058c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_0_SWIZ_Y(enum a4xx_tex_swiz val)
41068c2ecf20Sopenharmony_ci{
41078c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_0_SWIZ_Y__SHIFT) & A4XX_TEX_CONST_0_SWIZ_Y__MASK;
41088c2ecf20Sopenharmony_ci}
41098c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_SWIZ_Z__MASK				0x00001c00
41108c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_SWIZ_Z__SHIFT				10
41118c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_0_SWIZ_Z(enum a4xx_tex_swiz val)
41128c2ecf20Sopenharmony_ci{
41138c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_0_SWIZ_Z__SHIFT) & A4XX_TEX_CONST_0_SWIZ_Z__MASK;
41148c2ecf20Sopenharmony_ci}
41158c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_SWIZ_W__MASK				0x0000e000
41168c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_SWIZ_W__SHIFT				13
41178c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_0_SWIZ_W(enum a4xx_tex_swiz val)
41188c2ecf20Sopenharmony_ci{
41198c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_0_SWIZ_W__SHIFT) & A4XX_TEX_CONST_0_SWIZ_W__MASK;
41208c2ecf20Sopenharmony_ci}
41218c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_MIPLVLS__MASK				0x000f0000
41228c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_MIPLVLS__SHIFT				16
41238c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_0_MIPLVLS(uint32_t val)
41248c2ecf20Sopenharmony_ci{
41258c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_0_MIPLVLS__SHIFT) & A4XX_TEX_CONST_0_MIPLVLS__MASK;
41268c2ecf20Sopenharmony_ci}
41278c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_FMT__MASK				0x1fc00000
41288c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_FMT__SHIFT				22
41298c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_0_FMT(enum a4xx_tex_fmt val)
41308c2ecf20Sopenharmony_ci{
41318c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_0_FMT__SHIFT) & A4XX_TEX_CONST_0_FMT__MASK;
41328c2ecf20Sopenharmony_ci}
41338c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_TYPE__MASK				0x60000000
41348c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_0_TYPE__SHIFT				29
41358c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_0_TYPE(enum a4xx_tex_type val)
41368c2ecf20Sopenharmony_ci{
41378c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_0_TYPE__SHIFT) & A4XX_TEX_CONST_0_TYPE__MASK;
41388c2ecf20Sopenharmony_ci}
41398c2ecf20Sopenharmony_ci
41408c2ecf20Sopenharmony_ci#define REG_A4XX_TEX_CONST_1					0x00000001
41418c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_1_HEIGHT__MASK				0x00007fff
41428c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_1_HEIGHT__SHIFT				0
41438c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_1_HEIGHT(uint32_t val)
41448c2ecf20Sopenharmony_ci{
41458c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_1_HEIGHT__SHIFT) & A4XX_TEX_CONST_1_HEIGHT__MASK;
41468c2ecf20Sopenharmony_ci}
41478c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_1_WIDTH__MASK				0x3fff8000
41488c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_1_WIDTH__SHIFT				15
41498c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_1_WIDTH(uint32_t val)
41508c2ecf20Sopenharmony_ci{
41518c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_1_WIDTH__SHIFT) & A4XX_TEX_CONST_1_WIDTH__MASK;
41528c2ecf20Sopenharmony_ci}
41538c2ecf20Sopenharmony_ci
41548c2ecf20Sopenharmony_ci#define REG_A4XX_TEX_CONST_2					0x00000002
41558c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_2_PITCHALIGN__MASK			0x0000000f
41568c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_2_PITCHALIGN__SHIFT			0
41578c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_2_PITCHALIGN(uint32_t val)
41588c2ecf20Sopenharmony_ci{
41598c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_2_PITCHALIGN__SHIFT) & A4XX_TEX_CONST_2_PITCHALIGN__MASK;
41608c2ecf20Sopenharmony_ci}
41618c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_2_PITCH__MASK				0x3ffffe00
41628c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_2_PITCH__SHIFT				9
41638c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_2_PITCH(uint32_t val)
41648c2ecf20Sopenharmony_ci{
41658c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_2_PITCH__SHIFT) & A4XX_TEX_CONST_2_PITCH__MASK;
41668c2ecf20Sopenharmony_ci}
41678c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_2_SWAP__MASK				0xc0000000
41688c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_2_SWAP__SHIFT				30
41698c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_2_SWAP(enum a3xx_color_swap val)
41708c2ecf20Sopenharmony_ci{
41718c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_2_SWAP__SHIFT) & A4XX_TEX_CONST_2_SWAP__MASK;
41728c2ecf20Sopenharmony_ci}
41738c2ecf20Sopenharmony_ci
41748c2ecf20Sopenharmony_ci#define REG_A4XX_TEX_CONST_3					0x00000003
41758c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_3_LAYERSZ__MASK				0x00003fff
41768c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_3_LAYERSZ__SHIFT				0
41778c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_3_LAYERSZ(uint32_t val)
41788c2ecf20Sopenharmony_ci{
41798c2ecf20Sopenharmony_ci	return ((val >> 12) << A4XX_TEX_CONST_3_LAYERSZ__SHIFT) & A4XX_TEX_CONST_3_LAYERSZ__MASK;
41808c2ecf20Sopenharmony_ci}
41818c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_3_DEPTH__MASK				0x7ffc0000
41828c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_3_DEPTH__SHIFT				18
41838c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_3_DEPTH(uint32_t val)
41848c2ecf20Sopenharmony_ci{
41858c2ecf20Sopenharmony_ci	return ((val) << A4XX_TEX_CONST_3_DEPTH__SHIFT) & A4XX_TEX_CONST_3_DEPTH__MASK;
41868c2ecf20Sopenharmony_ci}
41878c2ecf20Sopenharmony_ci
41888c2ecf20Sopenharmony_ci#define REG_A4XX_TEX_CONST_4					0x00000004
41898c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_4_LAYERSZ__MASK				0x0000000f
41908c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_4_LAYERSZ__SHIFT				0
41918c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_4_LAYERSZ(uint32_t val)
41928c2ecf20Sopenharmony_ci{
41938c2ecf20Sopenharmony_ci	return ((val >> 12) << A4XX_TEX_CONST_4_LAYERSZ__SHIFT) & A4XX_TEX_CONST_4_LAYERSZ__MASK;
41948c2ecf20Sopenharmony_ci}
41958c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_4_BASE__MASK				0xffffffe0
41968c2ecf20Sopenharmony_ci#define A4XX_TEX_CONST_4_BASE__SHIFT				5
41978c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_TEX_CONST_4_BASE(uint32_t val)
41988c2ecf20Sopenharmony_ci{
41998c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_TEX_CONST_4_BASE__SHIFT) & A4XX_TEX_CONST_4_BASE__MASK;
42008c2ecf20Sopenharmony_ci}
42018c2ecf20Sopenharmony_ci
42028c2ecf20Sopenharmony_ci#define REG_A4XX_TEX_CONST_5					0x00000005
42038c2ecf20Sopenharmony_ci
42048c2ecf20Sopenharmony_ci#define REG_A4XX_TEX_CONST_6					0x00000006
42058c2ecf20Sopenharmony_ci
42068c2ecf20Sopenharmony_ci#define REG_A4XX_TEX_CONST_7					0x00000007
42078c2ecf20Sopenharmony_ci
42088c2ecf20Sopenharmony_ci#define REG_A4XX_SSBO_0_0					0x00000000
42098c2ecf20Sopenharmony_ci#define A4XX_SSBO_0_0_BASE__MASK				0xffffffe0
42108c2ecf20Sopenharmony_ci#define A4XX_SSBO_0_0_BASE__SHIFT				5
42118c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SSBO_0_0_BASE(uint32_t val)
42128c2ecf20Sopenharmony_ci{
42138c2ecf20Sopenharmony_ci	return ((val >> 5) << A4XX_SSBO_0_0_BASE__SHIFT) & A4XX_SSBO_0_0_BASE__MASK;
42148c2ecf20Sopenharmony_ci}
42158c2ecf20Sopenharmony_ci
42168c2ecf20Sopenharmony_ci#define REG_A4XX_SSBO_0_1					0x00000001
42178c2ecf20Sopenharmony_ci#define A4XX_SSBO_0_1_PITCH__MASK				0x003fffff
42188c2ecf20Sopenharmony_ci#define A4XX_SSBO_0_1_PITCH__SHIFT				0
42198c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SSBO_0_1_PITCH(uint32_t val)
42208c2ecf20Sopenharmony_ci{
42218c2ecf20Sopenharmony_ci	return ((val) << A4XX_SSBO_0_1_PITCH__SHIFT) & A4XX_SSBO_0_1_PITCH__MASK;
42228c2ecf20Sopenharmony_ci}
42238c2ecf20Sopenharmony_ci
42248c2ecf20Sopenharmony_ci#define REG_A4XX_SSBO_0_2					0x00000002
42258c2ecf20Sopenharmony_ci#define A4XX_SSBO_0_2_ARRAY_PITCH__MASK				0x03fff000
42268c2ecf20Sopenharmony_ci#define A4XX_SSBO_0_2_ARRAY_PITCH__SHIFT			12
42278c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SSBO_0_2_ARRAY_PITCH(uint32_t val)
42288c2ecf20Sopenharmony_ci{
42298c2ecf20Sopenharmony_ci	return ((val >> 12) << A4XX_SSBO_0_2_ARRAY_PITCH__SHIFT) & A4XX_SSBO_0_2_ARRAY_PITCH__MASK;
42308c2ecf20Sopenharmony_ci}
42318c2ecf20Sopenharmony_ci
42328c2ecf20Sopenharmony_ci#define REG_A4XX_SSBO_0_3					0x00000003
42338c2ecf20Sopenharmony_ci#define A4XX_SSBO_0_3_CPP__MASK					0x0000003f
42348c2ecf20Sopenharmony_ci#define A4XX_SSBO_0_3_CPP__SHIFT				0
42358c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SSBO_0_3_CPP(uint32_t val)
42368c2ecf20Sopenharmony_ci{
42378c2ecf20Sopenharmony_ci	return ((val) << A4XX_SSBO_0_3_CPP__SHIFT) & A4XX_SSBO_0_3_CPP__MASK;
42388c2ecf20Sopenharmony_ci}
42398c2ecf20Sopenharmony_ci
42408c2ecf20Sopenharmony_ci#define REG_A4XX_SSBO_1_0					0x00000000
42418c2ecf20Sopenharmony_ci#define A4XX_SSBO_1_0_CPP__MASK					0x0000001f
42428c2ecf20Sopenharmony_ci#define A4XX_SSBO_1_0_CPP__SHIFT				0
42438c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SSBO_1_0_CPP(uint32_t val)
42448c2ecf20Sopenharmony_ci{
42458c2ecf20Sopenharmony_ci	return ((val) << A4XX_SSBO_1_0_CPP__SHIFT) & A4XX_SSBO_1_0_CPP__MASK;
42468c2ecf20Sopenharmony_ci}
42478c2ecf20Sopenharmony_ci#define A4XX_SSBO_1_0_FMT__MASK					0x0000ff00
42488c2ecf20Sopenharmony_ci#define A4XX_SSBO_1_0_FMT__SHIFT				8
42498c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SSBO_1_0_FMT(enum a4xx_color_fmt val)
42508c2ecf20Sopenharmony_ci{
42518c2ecf20Sopenharmony_ci	return ((val) << A4XX_SSBO_1_0_FMT__SHIFT) & A4XX_SSBO_1_0_FMT__MASK;
42528c2ecf20Sopenharmony_ci}
42538c2ecf20Sopenharmony_ci#define A4XX_SSBO_1_0_WIDTH__MASK				0xffff0000
42548c2ecf20Sopenharmony_ci#define A4XX_SSBO_1_0_WIDTH__SHIFT				16
42558c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SSBO_1_0_WIDTH(uint32_t val)
42568c2ecf20Sopenharmony_ci{
42578c2ecf20Sopenharmony_ci	return ((val) << A4XX_SSBO_1_0_WIDTH__SHIFT) & A4XX_SSBO_1_0_WIDTH__MASK;
42588c2ecf20Sopenharmony_ci}
42598c2ecf20Sopenharmony_ci
42608c2ecf20Sopenharmony_ci#define REG_A4XX_SSBO_1_1					0x00000001
42618c2ecf20Sopenharmony_ci#define A4XX_SSBO_1_1_HEIGHT__MASK				0x0000ffff
42628c2ecf20Sopenharmony_ci#define A4XX_SSBO_1_1_HEIGHT__SHIFT				0
42638c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SSBO_1_1_HEIGHT(uint32_t val)
42648c2ecf20Sopenharmony_ci{
42658c2ecf20Sopenharmony_ci	return ((val) << A4XX_SSBO_1_1_HEIGHT__SHIFT) & A4XX_SSBO_1_1_HEIGHT__MASK;
42668c2ecf20Sopenharmony_ci}
42678c2ecf20Sopenharmony_ci#define A4XX_SSBO_1_1_DEPTH__MASK				0xffff0000
42688c2ecf20Sopenharmony_ci#define A4XX_SSBO_1_1_DEPTH__SHIFT				16
42698c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_SSBO_1_1_DEPTH(uint32_t val)
42708c2ecf20Sopenharmony_ci{
42718c2ecf20Sopenharmony_ci	return ((val) << A4XX_SSBO_1_1_DEPTH__SHIFT) & A4XX_SSBO_1_1_DEPTH__MASK;
42728c2ecf20Sopenharmony_ci}
42738c2ecf20Sopenharmony_ci
42748c2ecf20Sopenharmony_ci
42758c2ecf20Sopenharmony_ci#endif /* A4XX_XML */
4276