nouveau: Stop using hex for SM numbers
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:53:17 +0000 (20:53 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:06 +0000 (21:32 +0000)
commit56ccada0879ec2815b98a8cbeadbf36cd02555cc
tree32ff0f8cb5d61eefc9f22e1a64b5021ce918a931
parent9846c4e13e07ac79284ff72e0b78b356339e2d08
nouveau: Stop using hex for SM numbers

There's no indication that NVIDIA considers this to be anything other
than a decimal number.  Much to the contrary, the number of 5s and 9s in
the SM number table implies they very much are base 10.  Given that
Lovelace is SM90, we'll likely be hitting 100 fairly soon at which point
this will stop fitting in a uint8_t.  Switch to decimal to compress it
down a bit.

Also, rename the field to SM which beter matches the NVIDIA docs and
ensures that there are no users of this which are likely to be confused.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/winsys/nouveau_device.c
src/nouveau/winsys/nouveau_device.h