freedreno/ir3: Fix sz vs class confusion
authorKristian H. Kristensen <hoegsberg@google.com>
Thu, 9 Apr 2020 22:57:41 +0000 (15:57 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 10 Apr 2020 17:24:14 +0000 (10:24 -0700)
commit5ec1f264f1f70806fe266606d3376a898a96292d
tree11988305dae84cd6be6c2ea0e7ad80c1630a022d
parent65e2eaa4d3a7095ac438fafb09d1e36a4210966e
freedreno/ir3: Fix sz vs class confusion

Add bounds checking to make sure we don't silently access out of
bounds again.

Fixes: 90f7d12236c ("freedreno/ir3/ra: pick higher numbered scalars in first pass")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4503>
src/freedreno/ir3/ir3_ra.c
src/freedreno/ir3/ir3_ra.h