From fc800af83bb4c5a0b0b9eec8cdea138d7477101b Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sun, 12 May 2019 15:55:15 +0200 Subject: nv50/ir/nir: make use of SYSTEM_VALUE_MAX when iterating read sysvals Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp index eb2f202993a..9054060453b 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp @@ -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; -- cgit v1.2.3