util/ra: Fix numeric overflow during bitset allocation
authorKostiantyn Lazukin <konstantin.lazukin@globallogic.com>
Thu, 16 Dec 2021 11:23:49 +0000 (13:23 +0200)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 19 Dec 2021 21:10:26 +0000 (13:10 -0800)
commite9cc1633a225cfcc7d3313e8755b95b2693301b3
treeb15712745cbe31619fa13cbef263119b73e88ab0
parent84b21fea46d2b5670b3114cd48a7e859b2e42a35
util/ra: Fix numeric overflow during bitset allocation

Reviewed-by: Emma Anholt <emma@anholt.net>
Signed-off-by: Kostiantyn Lazukin <kostiantyn.lazukin@globallogic.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5752
Fixes: d4a4cd20d52 ("util/ra: use adjacency matrix for undirected graph")
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14224>
src/util/register_allocate.c