It's a hot routine and these are exceedingly unlikely to break.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3067>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3067>
unsigned size_z,
bool quirk_graphics)
{
- /* First of all, all 6 values are off-by-one (strictly positive).
- * Account for that, first by ensuring all values are strictly positive
- * and then by offsetting */
-
- assert(num_x > 0);
- assert(num_y > 0);
- assert(num_z > 0);
-
- assert(size_x > 0);
- assert(size_y > 0);
- assert(size_z > 0);
+ /* First of all, all 6 values are off-by-one (strictly positive). */
num_x = MALI_POSITIVE(num_x);
num_y = MALI_POSITIVE(num_y);