16 / cpp happens to be the same as utile_w on the only raster format
supported (4 bytes per pixel), but simulator/hw source code generally
talks in terms of utiles.
switch (tiling_format) {
case VC4_TILING_FORMAT_LINEAR:
- aligned_width = roundup(width, 16 / cpp);
+ aligned_width = roundup(width, utile_w);
aligned_height = height;
break;
case VC4_TILING_FORMAT_T:
aligned_height = roundup(level_height, utile_h);
break;
default:
- aligned_width = roundup(level_width, 16 / cpp);
+ aligned_width = roundup(level_width, utile_w);
aligned_height = level_height;
break;
}