svga: fix max number of texture cube levels
authorCharmaine Lee <charmainel@vmware.com>
Tue, 10 Jan 2023 04:46:33 +0000 (20:46 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 11 Jan 2023 02:31:14 +0000 (02:31 +0000)
commit32b23d8fb21d13ccd84da131070cc6c9bca137d5
tree8f86ce9873da55e06c1fc6a91b7a19e4c1cd0924
parent1aa163ebb5b90dc0fdf224f7a14c2ff88093c2aa
svga: fix max number of texture cube levels

The maximum number of mipmap levels supported for cubemap can be
determined from the maximum 2D texture size. There is no need
to limit the max to 12.

This fixes a regression in creating GL4.1 and up context since
commit 2658d025166c is now explicitly checking for
MaxCubeTextureLevels >= 15 for GL4.1 context.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20600>
src/gallium/drivers/svga/svga_screen.c