Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
regValue.backendDisables = ws->amdinfo.backend_disable[0];
regValue.pTileConfig = ws->amdinfo.gb_tile_mode;
- regValue.noOfEntries = sizeof(ws->amdinfo.gb_tile_mode) /
- sizeof(ws->amdinfo.gb_tile_mode[0]);
+ regValue.noOfEntries = ARRAY_SIZE(ws->amdinfo.gb_tile_mode);
regValue.pMacroTileConfig = ws->amdinfo.gb_macro_tile_mode;
- regValue.noOfMacroEntries = sizeof(ws->amdinfo.gb_macro_tile_mode) /
- sizeof(ws->amdinfo.gb_macro_tile_mode[0]);
+ regValue.noOfMacroEntries = ARRAY_SIZE(ws->amdinfo.gb_macro_tile_mode);
createFlags.value = 0;
createFlags.useTileIndex = 1;