nv50/ir/nir: make use of SYSTEM_VALUE_MAX when iterating read sysvals

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
This commit is contained in:
Karol Herbst
2019-05-12 15:55:15 +02:00
parent 358e52383c
commit fc800af83b
@@ -1337,7 +1337,7 @@ bool Converter::assignSlots() {
}
info->numSysVals = 0;
for (uint8_t i = 0; i < 64; ++i) {
for (uint8_t i = 0; i < SYSTEM_VALUE_MAX; ++i) {
if (!(nir->info.system_values_read & 1ull << i))
continue;