ail: Assert that the mip level is in bounds
authorAsahi Lina <lina@asahilina.net>
Fri, 9 Dec 2022 11:15:42 +0000 (20:15 +0900)
committerMarge Bot <emma+marge@anholt.net>
Sat, 17 Dec 2022 18:10:28 +0000 (18:10 +0000)
commit58d02e4f59629a72ce322813ae8416aa3b712dad
treef6f6dee7ecfbd515f17cddcbbbd1575e7c3a8fe1
parenta8ec3135bbec858c60ab5b5a3dd305a62d351cf5
ail: Assert that the mip level is in bounds

This preempts possible out-of-bounds accesses and later asserts when
trying to get the tile size.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20365>
src/asahi/layout/tiling.c