181aa83027
If the size here is not a multiple of the granularity (64kb) then we'll miss our "pages" estimation by 1. We could fix this with DIV_ROUND_UP() or by simply putting a "+1" there, but the upper layers should now be preventing this case so let's just put the assertion here. Previously it was possible to hit this case with Zink by running under certain conditions piglit/arb_sparse_buffer-basic. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26454>