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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user