Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23037>
*
* This helps on both dGPUs and APUs, even small APUs like Mullins.
*/
- bool fb_too_small = num_pixels * num_layers <= 512 * 512;
+ bool fb_too_small = (uint64_t)num_pixels * num_layers <= 512 * 512;
bool too_small = tex->buffer.b.b.nr_samples <= 1 && fb_too_small;
bool eliminate_needed = false;
bool fmask_decompress_needed = false;