_tile_storeconfig
Classification
AMX, Application-Targeted, CPUID Test: AMX-TILE
Header File
Instruction
STTILECFG m512
Synopsis
_tile_storeconfig(void * mem_addr);
Description
Stores the current tile configuration to a 64-byte memory location specified by "mem_addr". The tile configuration format is specified below, and includes the tile type pallette, the number of bytes per row, and the number of rows. If tiles are not configured, all zeroes will be stored to memory.
Operation
// format of memory payload. each field is a byte.
// 0: palette
// 1: start_row
// 2-15: reserved, must be zero
// 16-17: tile0.colsb
// 18-19: tile1.colsb
// 20-21: tile2.colsb
// ...
// 30-31: tile7.colsb
// 32-47: reserved, must be zero
// 48: tile0.rows
// 49: tile1.rows
// 50: tile2.rows
// ...
// 55: tile7.rows
// 56-63: reserved, must be zero