Skip to content

treewide: use uint64_t / (u)intptr_t in image address calculations

Marek Olšák requested to merge mareko/mesa:layer_stride-64bit into main

16K * 16K * 16bpp = 4G, which overflows int32, so layer_stride needs to have 64 bits. More generally, any "byte_stride * height" computation can overflow int32.

Use (u)intptr_t in some gallium and st/mesa places where we do CPU access. Use uint64_t otherwise.

Merge request reports