nil: Fix max mip level
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:56 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:58 +0000 (21:31 +0000)
commitd407e2b1309d8ad63ff4f9326a8b5e7347ba8515
treedf80a5be6d5e60c05470880e630d0a38d7eb4858
parent89591214a3ed3dd17285107d274a24782729cc17
nil: Fix max mip level

The MAX_MIP_LEVEL field needs the actual number from the image because
it's used to compute the stride between layers.  The restrictions on mip
level come entirely from the RES_VIEW fields.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/nil/nil_image_tic.c