mesa/crocus/iris/blorp: drop minify macro in favour of u_minify

This macro is duplicated, clean it up.

Reviewed-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14103>
This commit is contained in:
Dave Airlie
2021-12-07 16:05:56 +10:00
committed by Marge Bot
parent d9f0991744
commit 55b396e743
8 changed files with 34 additions and 41 deletions

View File

@@ -368,7 +368,7 @@ unsigned
crocus_get_num_logical_layers(const struct crocus_resource *res, unsigned level)
{
if (res->surf.dim == ISL_SURF_DIM_3D)
return minify(res->surf.logical_level0_px.depth, level);
return u_minify(res->surf.logical_level0_px.depth, level);
else
return res->surf.logical_level0_px.array_len;
}