{ "enums": { "IMG_FORMAT": { "entries": [ {"name": "IMG_FORMAT_INVALID", "value": 0}, {"name": "IMG_FORMAT_8_UNORM", "value": 1}, {"name": "IMG_FORMAT_8_SNORM", "value": 2}, {"name": "IMG_FORMAT_8_USCALED", "value": 3}, {"name": "IMG_FORMAT_8_SSCALED", "value": 4}, {"name": "IMG_FORMAT_8_UINT", "value": 5}, {"name": "IMG_FORMAT_8_SINT", "value": 6}, {"name": "IMG_FORMAT_16_UNORM", "value": 7}, {"name": "IMG_FORMAT_16_SNORM", "value": 8}, {"name": "IMG_FORMAT_16_USCALED", "value": 9}, {"name": "IMG_FORMAT_16_SSCALED", "value": 10}, {"name": "IMG_FORMAT_16_UINT", "value": 11}, {"name": "IMG_FORMAT_16_SINT", "value": 12}, {"name": "IMG_FORMAT_16_FLOAT", "value": 13}, {"name": "IMG_FORMAT_8_8_UNORM", "value": 14}, {"name": "IMG_FORMAT_8_8_SNORM", "value": 15}, {"name": "IMG_FORMAT_8_8_USCALED", "value": 16}, {"name": "IMG_FORMAT_8_8_SSCALED", "value": 17}, {"name": "IMG_FORMAT_8_8_UINT", "value": 18}, {"name": "IMG_FORMAT_8_8_SINT", "value": 19}, {"name": "IMG_FORMAT_32_UINT", "value": 20}, {"name": "IMG_FORMAT_32_SINT", "value": 21}, {"name": "IMG_FORMAT_32_FLOAT", "value": 22}, {"name": "IMG_FORMAT_16_16_UNORM", "value": 23}, {"name": "IMG_FORMAT_16_16_SNORM", "value": 24}, {"name": "IMG_FORMAT_16_16_USCALED", "value": 25}, {"name": "IMG_FORMAT_16_16_SSCALED", "value": 26}, {"name": "IMG_FORMAT_16_16_UINT", "value": 27}, {"name": "IMG_FORMAT_16_16_SINT", "value": 28}, {"name": "IMG_FORMAT_16_16_FLOAT", "value": 29}, {"name": "IMG_FORMAT_10_11_11_UNORM", "value": 30}, {"name": "IMG_FORMAT_10_11_11_SNORM", "value": 31}, {"name": "IMG_FORMAT_10_11_11_USCALED", "value": 32}, {"name": "IMG_FORMAT_10_11_11_SSCALED", "value": 33}, {"name": "IMG_FORMAT_10_11_11_UINT", "value": 34}, {"name": "IMG_FORMAT_10_11_11_SINT", "value": 35}, {"name": "IMG_FORMAT_10_11_11_FLOAT", "value": 36}, {"name": "IMG_FORMAT_11_11_10_UNORM", "value": 37}, {"name": "IMG_FORMAT_11_11_10_SNORM", "value": 38}, {"name": "IMG_FORMAT_11_11_10_USCALED", "value": 39}, {"name": "IMG_FORMAT_11_11_10_SSCALED", "value": 40}, {"name": "IMG_FORMAT_11_11_10_UINT", "value": 41}, {"name": "IMG_FORMAT_11_11_10_SINT", "value": 42}, {"name": "IMG_FORMAT_11_11_10_FLOAT", "value": 43}, {"name": "IMG_FORMAT_10_10_10_2_UNORM", "value": 44}, {"name": "IMG_FORMAT_10_10_10_2_SNORM", "value": 45}, {"name": "IMG_FORMAT_10_10_10_2_USCALED", "value": 46}, {"name": "IMG_FORMAT_10_10_10_2_SSCALED", "value": 47}, {"name": "IMG_FORMAT_10_10_10_2_UINT", "value": 48}, {"name": "IMG_FORMAT_10_10_10_2_SINT", "value": 49}, {"name": "IMG_FORMAT_2_10_10_10_UNORM", "value": 50}, {"name": "IMG_FORMAT_2_10_10_10_SNORM", "value": 51}, {"name": "IMG_FORMAT_2_10_10_10_USCALED", "value": 52}, {"name": "IMG_FORMAT_2_10_10_10_SSCALED", "value": 53}, {"name": "IMG_FORMAT_2_10_10_10_UINT", "value": 54}, {"name": "IMG_FORMAT_2_10_10_10_SINT", "value": 55}, {"name": "IMG_FORMAT_8_8_8_8_UNORM", "value": 56}, {"name": "IMG_FORMAT_8_8_8_8_SNORM", "value": 57}, {"name": "IMG_FORMAT_8_8_8_8_USCALED", "value": 58}, {"name": "IMG_FORMAT_8_8_8_8_SSCALED", "value": 59}, {"name": "IMG_FORMAT_8_8_8_8_UINT", "value": 60}, {"name": "IMG_FORMAT_8_8_8_8_SINT", "value": 61}, {"name": "IMG_FORMAT_32_32_UINT", "value": 62}, {"name": "IMG_FORMAT_32_32_SINT", "value": 63}, {"name": "IMG_FORMAT_32_32_FLOAT", "value": 64}, {"name": "IMG_FORMAT_16_16_16_16_UNORM", "value": 65}, {"name": "IMG_FORMAT_16_16_16_16_SNORM", "value": 66}, {"name": "IMG_FORMAT_16_16_16_16_USCALED", "value": 67}, {"name": "IMG_FORMAT_16_16_16_16_SSCALED", "value": 68}, {"name": "IMG_FORMAT_16_16_16_16_UINT", "value": 69}, {"name": "IMG_FORMAT_16_16_16_16_SINT", "value": 70}, {"name": "IMG_FORMAT_16_16_16_16_FLOAT", "value": 71}, {"flags": ["buffers_only"], "name": "IMG_FORMAT_32_32_32_UINT", "value": 72}, {"flags": ["buffers_only"], "name": "IMG_FORMAT_32_32_32_SINT", "value": 73}, {"flags": ["buffers_only"], "name": "IMG_FORMAT_32_32_32_FLOAT", "value": 74}, {"name": "IMG_FORMAT_32_32_32_32_UINT", "value": 75}, {"name": "IMG_FORMAT_32_32_32_32_SINT", "value": 76}, {"name": "IMG_FORMAT_32_32_32_32_FLOAT", "value": 77}, {"name": "IMG_FORMAT_8_SRGB", "value": 128}, {"name": "IMG_FORMAT_8_8_SRGB", "value": 129}, {"name": "IMG_FORMAT_8_8_8_8_SRGB", "value": 130}, {"name": "IMG_FORMAT_6E4_FLOAT", "value": 131}, {"name": "IMG_FORMAT_5_9_9_9_FLOAT", "value": 132}, {"name": "IMG_FORMAT_5_6_5_UNORM", "value": 133}, {"name": "IMG_FORMAT_1_5_5_5_UNORM", "value": 134}, {"name": "IMG_FORMAT_5_5_5_1_UNORM", "value": 135}, {"name": "IMG_FORMAT_4_4_4_4_UNORM", "value": 136}, {"name": "IMG_FORMAT_4_4_UNORM", "value": 137}, {"name": "IMG_FORMAT_1_UNORM", "value": 138}, {"name": "IMG_FORMAT_1_REVERSED_UNORM", "value": 139}, {"name": "IMG_FORMAT_32_FLOAT_CLAMP", "value": 140}, {"name": "IMG_FORMAT_8_24_UNORM", "value": 141}, {"name": "IMG_FORMAT_8_24_UINT", "value": 142}, {"name": "IMG_FORMAT_24_8_UNORM", "value": 143}, {"name": "IMG_FORMAT_24_8_UINT", "value": 144}, {"name": "IMG_FORMAT_X24_8_32_UINT", "value": 145}, {"name": "IMG_FORMAT_X24_8_32_FLOAT", "value": 146}, {"name": "IMG_FORMAT_GB_GR_UNORM", "value": 147}, {"name": "IMG_FORMAT_GB_GR_SNORM", "value": 148}, {"name": "IMG_FORMAT_GB_GR_UINT", "value": 149}, {"name": "IMG_FORMAT_GB_GR_SRGB", "value": 150}, {"name": "IMG_FORMAT_BG_RG_UNORM", "value": 151}, {"name": "IMG_FORMAT_BG_RG_SNORM", "value": 152}, {"name": "IMG_FORMAT_BG_RG_UINT", "value": 153}, {"name": "IMG_FORMAT_BG_RG_SRGB", "value": 154}, {"name": "IMG_FORMAT_FMASK8_S2_F1", "value": 156}, {"name": "IMG_FORMAT_FMASK8_S4_F1", "value": 157}, {"name": "IMG_FORMAT_FMASK8_S8_F1", "value": 158}, {"name": "IMG_FORMAT_FMASK8_S2_F2", "value": 159}, {"name": "IMG_FORMAT_FMASK8_S4_F2", "value": 160}, {"name": "IMG_FORMAT_FMASK8_S4_F4", "value": 161}, {"name": "IMG_FORMAT_FMASK16_S16_F1", "value": 162}, {"name": "IMG_FORMAT_FMASK16_S8_F2", "value": 163}, {"name": "IMG_FORMAT_FMASK32_S16_F2", "value": 164}, {"name": "IMG_FORMAT_FMASK32_S8_F4", "value": 165}, {"name": "IMG_FORMAT_FMASK32_S8_F8", "value": 166}, {"name": "IMG_FORMAT_FMASK64_S16_F4", "value": 167}, {"name": "IMG_FORMAT_FMASK64_S16_F8", "value": 168}, {"name": "IMG_FORMAT_BC1_UNORM", "value": 169}, {"name": "IMG_FORMAT_BC1_SRGB", "value": 170}, {"name": "IMG_FORMAT_BC2_UNORM", "value": 171}, {"name": "IMG_FORMAT_BC2_SRGB", "value": 172}, {"name": "IMG_FORMAT_BC3_UNORM", "value": 173}, {"name": "IMG_FORMAT_BC3_SRGB", "value": 174}, {"name": "IMG_FORMAT_BC4_UNORM", "value": 175}, {"name": "IMG_FORMAT_BC4_SNORM", "value": 176}, {"name": "IMG_FORMAT_BC5_UNORM", "value": 177}, {"name": "IMG_FORMAT_BC5_SNORM", "value": 178}, {"name": "IMG_FORMAT_BC6_UFLOAT", "value": 179}, {"name": "IMG_FORMAT_BC6_SFLOAT", "value": 180}, {"name": "IMG_FORMAT_BC7_UNORM", "value": 181}, {"name": "IMG_FORMAT_BC7_SRGB", "value": 182}, {"name": "IMG_FORMAT_MM_8_UNORM", "value": 265}, {"name": "IMG_FORMAT_MM_8_UINT", "value": 266}, {"name": "IMG_FORMAT_MM_8_8_UNORM", "value": 267}, {"name": "IMG_FORMAT_MM_8_8_UINT", "value": 268}, {"name": "IMG_FORMAT_MM_8_8_8_8_UNORM", "value": 269}, {"name": "IMG_FORMAT_MM_8_8_8_8_UINT", "value": 270}, {"name": "IMG_FORMAT_MM_VYUY8_UNORM", "value": 271}, {"name": "IMG_FORMAT_MM_VYUY8_UINT", "value": 272}, {"name": "IMG_FORMAT_MM_10_11_11_UNORM", "value": 273}, {"name": "IMG_FORMAT_MM_10_11_11_UINT", "value": 274}, {"name": "IMG_FORMAT_MM_2_10_10_10_UNORM", "value": 275}, {"name": "IMG_FORMAT_MM_2_10_10_10_UINT", "value": 276}, {"name": "IMG_FORMAT_MM_16_16_16_16_UNORM", "value": 277}, {"name": "IMG_FORMAT_MM_16_16_16_16_UINT", "value": 278}, {"name": "IMG_FORMAT_MM_10_IN_16_UNORM", "value": 279}, {"name": "IMG_FORMAT_MM_10_IN_16_UINT", "value": 280}, {"name": "IMG_FORMAT_MM_10_IN_16_16_UNORM", "value": 281}, {"name": "IMG_FORMAT_MM_10_IN_16_16_UINT", "value": 282}, {"name": "IMG_FORMAT_MM_10_IN_16_16_16_16_UNORM ", "value": 283}, {"name": "IMG_FORMAT_MM_10_IN_16_16_16_16_UINT", "value": 284}, {"name": "IMG_FORMAT_7E3_FLOAT", "value": 285}, {"name": "IMG_FORMAT_YCBCR_UNORM", "value": 286}, {"name": "IMG_FORMAT_YCBCR_SNORM", "value": 287}, {"name": "IMG_FORMAT_YCBCR_USCALED", "value": 288}, {"name": "IMG_FORMAT_YCBCR_SSCALED", "value": 289}, {"name": "IMG_FORMAT_YCBCR_UINT", "value": 290}, {"name": "IMG_FORMAT_YCBCR_SINT", "value": 291}, {"name": "IMG_FORMAT_YCBCR_SRGB", "value": 292} ] }, "SQ_EXP_0__TGT": { "entries": [ {"name": "SQ_EXP_MRT", "value": 0}, {"name": "SQ_EXP_MRTZ", "value": 8}, {"name": "SQ_EXP_NULL", "value": 9}, {"name": "SQ_EXP_POS", "value": 12}, {"name": "SQ_EXP_PRIM", "value": 20}, {"name": "SQ_EXP_PARAM", "value": 32} ] }, "SQ_IMG_RSRC_WORD4__BC_SWIZZLE": { "entries": [ {"name": "BC_SWIZZLE_XYZW", "value": 0}, {"name": "BC_SWIZZLE_XWYZ", "value": 1}, {"name": "BC_SWIZZLE_WZYX", "value": 2}, {"name": "BC_SWIZZLE_WXYZ", "value": 3}, {"name": "BC_SWIZZLE_ZYXW", "value": 4}, {"name": "BC_SWIZZLE_YXWZ", "value": 5} ] }, "SQ_BUF_RSRC_WORD3__OOB_SELECT": { "entries": [ {"name": "OOB_SELECT_STRUCTURED_WITH_OFFSET", "value": 0}, {"name": "OOB_SELECT_STRUCTURED", "value": 1}, {"name": "OOB_SELECT_DISABLED", "value": 2}, {"name": "OOB_SELECT_RAW", "value": 3} ] } }, "register_mappings": [ { "chips": ["gfx10"], "map": {"at": 36608, "to": "mm"}, "name": "SQ_BUF_RSRC_WORD0" }, { "chips": ["gfx10"], "map": {"at": 36612, "to": "mm"}, "name": "SQ_BUF_RSRC_WORD1", "type_ref": "SQ_BUF_RSRC_WORD1" }, { "chips": ["gfx10"], "map": {"at": 36616, "to": "mm"}, "name": "SQ_BUF_RSRC_WORD2" }, { "chips": ["gfx10"], "map": {"at": 36620, "to": "mm"}, "name": "SQ_BUF_RSRC_WORD3", "type_ref": "SQ_BUF_RSRC_WORD3" }, { "chips": ["gfx10"], "map": {"at": 36348, "to": "mm"}, "name": "SQ_EXP_0", "type_ref": "SQ_EXP_0" }, { "chips": ["gfx10"], "map": {"at": 40960, "to": "mm"}, "name": "SQ_IMG_RSRC_WORD0" }, { "chips": ["gfx10"], "map": {"at": 40964, "to": "mm"}, "name": "SQ_IMG_RSRC_WORD1", "type_ref": "SQ_IMG_RSRC_WORD1" }, { "chips": ["gfx10"], "map": {"at": 40968, "to": "mm"}, "name": "SQ_IMG_RSRC_WORD2", "type_ref": "SQ_IMG_RSRC_WORD2" }, { "chips": ["gfx10"], "map": {"at": 40972, "to": "mm"}, "name": "SQ_IMG_RSRC_WORD3", "type_ref": "SQ_IMG_RSRC_WORD3" }, { "chips": ["gfx10"], "map": {"at": 40976, "to": "mm"}, "name": "SQ_IMG_RSRC_WORD4", "type_ref": "SQ_IMG_RSRC_WORD4" }, { "chips": ["gfx10"], "map": {"at": 40980, "to": "mm"}, "name": "SQ_IMG_RSRC_WORD5", "type_ref": "SQ_IMG_RSRC_WORD5" }, { "chips": ["gfx10"], "map": {"at": 40984, "to": "mm"}, "name": "SQ_IMG_RSRC_WORD6", "type_ref": "SQ_IMG_RSRC_WORD6" }, { "chips": ["gfx10"], "map": {"at": 40988, "to": "mm"}, "name": "SQ_IMG_RSRC_WORD7" }, { "chips": ["gfx10"], "map": {"at": 36656, "to": "mm"}, "name": "SQ_IMG_SAMP_WORD0", "type_ref": "SQ_IMG_SAMP_WORD0" }, { "chips": ["gfx10"], "map": {"at": 36660, "to": "mm"}, "name": "SQ_IMG_SAMP_WORD1", "type_ref": "SQ_IMG_SAMP_WORD1" }, { "chips": ["gfx10"], "map": {"at": 36664, "to": "mm"}, "name": "SQ_IMG_SAMP_WORD2", "type_ref": "SQ_IMG_SAMP_WORD2" }, { "chips": ["gfx10"], "map": {"at": 36668, "to": "mm"}, "name": "SQ_IMG_SAMP_WORD3", "type_ref": "SQ_IMG_SAMP_WORD3" } ], "register_types": { "SQ_BUF_RSRC_WORD1": { "fields": [ {"bits": [0, 15], "name": "BASE_ADDRESS_HI"}, {"bits": [16, 29], "name": "STRIDE"}, {"bits": [30, 30], "name": "CACHE_SWIZZLE"}, {"bits": [31, 31], "name": "SWIZZLE_ENABLE"} ] }, "SQ_BUF_RSRC_WORD3": { "fields": [ {"bits": [0, 2], "name": "DST_SEL_X"}, {"bits": [3, 5], "name": "DST_SEL_Y"}, {"bits": [6, 8], "name": "DST_SEL_Z"}, {"bits": [9, 11], "name": "DST_SEL_W"}, {"bits": [12, 18], "enum_ref": "IMG_FORMAT", "name": "FORMAT"}, {"bits": [21, 22], "name": "INDEX_STRIDE"}, {"bits": [23, 23], "name": "ADD_TID_ENABLE"}, {"bits": [24, 24], "comment": "must be 1", "name": "RESOURCE_LEVEL"}, {"bits": [28, 29], "enum_ref": "SQ_BUF_RSRC_WORD3__OOB_SELECT", "name": "OOB_SELECT"}, {"bits": [30, 31], "comment": "must be 0", "name": "TYPE"} ] }, "SQ_EXP_0": { "fields": [ {"bits": [0, 3], "name": "EN"}, {"bits": [4, 9], "enum_ref": "SQ_EXP_0__TGT", "name": "TGT"}, {"bits": [10, 10], "name": "COMPR"}, {"bits": [11, 11], "name": "DONE"}, {"bits": [12, 12], "name": "VM"} ] }, "SQ_IMG_RSRC_WORD1": { "fields": [ {"bits": [0, 7], "name": "BASE_ADDRESS_HI"}, {"bits": [8, 19], "name": "MIN_LOD"}, {"bits": [20, 28], "enum_ref": "IMG_FORMAT", "name": "FORMAT"}, {"bits": [30, 31], "name": "WIDTH_LO"} ] }, "SQ_IMG_RSRC_WORD2": { "fields": [ {"bits": [0, 13], "name": "WIDTH_HI"}, {"bits": [14, 29], "name": "HEIGHT"}, {"bits": [31, 31], "comment": "must be 1", "name": "RESOURCE_LEVEL"} ] }, "SQ_IMG_RSRC_WORD3": { "fields": [ {"bits": [0, 2], "name": "DST_SEL_X"}, {"bits": [3, 5], "name": "DST_SEL_Y"}, {"bits": [6, 8], "name": "DST_SEL_Z"}, {"bits": [9, 11], "name": "DST_SEL_W"}, {"bits": [12, 15], "name": "BASE_LEVEL"}, {"bits": [16, 19], "name": "LAST_LEVEL"}, {"bits": [20, 24], "name": "SW_MODE"}, {"bits": [25, 27], "enum_ref": "SQ_IMG_RSRC_WORD4__BC_SWIZZLE", "name": "BC_SWIZZLE"}, {"bits": [28, 31], "name": "TYPE"} ] }, "SQ_IMG_RSRC_WORD4": { "fields": [ {"bits": [0, 15], "name": "DEPTH"}, {"bits": [16, 31], "name": "BASE_ARRAY"} ] }, "SQ_IMG_RSRC_WORD5": { "fields": [ {"bits": [0, 3], "name": "ARRAY_PITCH"}, {"bits": [4, 7], "name": "MAX_MIP"}, {"bits": [8, 19], "name": "MIN_LOD_WARN"}, {"bits": [20, 22], "name": "PERF_MOD"}, {"bits": [23, 23], "name": "CORNER_SAMPLES"}, {"bits": [25, 25], "name": "LOD_HDW_CNT_EN"}, {"bits": [26, 26], "name": "PRT_DEFAULT"}, {"bits": [31, 31], "name": "BIG_PAGE"} ] }, "SQ_IMG_RSRC_WORD6": { "fields": [ {"bits": [0, 7], "name": "COUNTER_BANK_ID"}, {"bits": [10, 10], "name": "ITERATE_256"}, {"bits": [15, 16], "name": "MAX_UNCOMPRESSED_BLOCK_SIZE"}, {"bits": [17, 18], "name": "MAX_COMPRESSED_BLOCK_SIZE"}, {"bits": [19, 19], "name": "META_PIPE_ALIGNED"}, {"bits": [20, 20], "name": "WRITE_COMPRESS_ENABLE"}, {"bits": [21, 21], "name": "COMPRESSION_EN"}, {"bits": [22, 22], "name": "ALPHA_IS_ON_MSB"}, {"bits": [23, 23], "name": "COLOR_TRANSFORM"}, {"bits": [24, 31], "name": "META_DATA_ADDRESS_LO"} ] }, "SQ_IMG_SAMP_WORD0": { "fields": [ {"bits": [0, 2], "name": "CLAMP_X"}, {"bits": [3, 5], "name": "CLAMP_Y"}, {"bits": [6, 8], "name": "CLAMP_Z"}, {"bits": [9, 11], "name": "MAX_ANISO_RATIO"}, {"bits": [12, 14], "name": "DEPTH_COMPARE_FUNC"}, {"bits": [15, 15], "name": "FORCE_UNNORMALIZED"}, {"bits": [16, 18], "name": "ANISO_THRESHOLD"}, {"bits": [19, 19], "name": "MC_COORD_TRUNC"}, {"bits": [20, 20], "name": "FORCE_DEGAMMA"}, {"bits": [21, 26], "name": "ANISO_BIAS"}, {"bits": [27, 27], "name": "TRUNC_COORD"}, {"bits": [28, 28], "name": "DISABLE_CUBE_WRAP"}, {"bits": [29, 30], "name": "FILTER_MODE"}, {"bits": [31, 31], "name": "SKIP_DEGAMMA"} ] }, "SQ_IMG_SAMP_WORD1": { "fields": [ {"bits": [0, 11], "name": "MIN_LOD"}, {"bits": [12, 23], "name": "MAX_LOD"}, {"bits": [24, 27], "name": "PERF_MIP"}, {"bits": [28, 31], "name": "PERF_Z"} ] }, "SQ_IMG_SAMP_WORD2": { "fields": [ {"bits": [0, 13], "name": "LOD_BIAS"}, {"bits": [0, 11], "comment": "if DERIV_ADJUST_EN == 1", "name": "BORDER_COLOR_PTR"}, {"bits": [12, 13], "comment": "if DERIV_ADJUST_EN == 1", "name": "BORDER_COLOR_TYPE"}, {"bits": [14, 19], "name": "LOD_BIAS_SEC"}, {"bits": [20, 21], "name": "XY_MAG_FILTER"}, {"bits": [22, 23], "name": "XY_MIN_FILTER"}, {"bits": [24, 25], "name": "Z_FILTER"}, {"bits": [26, 27], "name": "MIP_FILTER"}, {"bits": [28, 28], "name": "MIP_POINT_PRECLAMP"}, {"bits": [29, 29], "name": "ANISO_OVERRIDE"}, {"bits": [30, 30], "name": "BLEND_ZERO_PRT"}, {"bits": [31, 31], "name": "DERIV_ADJUST_EN"} ] }, "SQ_IMG_SAMP_WORD3": { "fields": [ {"bits": [0, 11], "comment": "if DERIV_ADJUST_EN == 0", "name": "BORDER_COLOR_PTR"}, {"bits": [30, 31], "comment": "if DERIV_ADJUST_EN == 0", "name": "BORDER_COLOR_TYPE"} ] } } }