diff options
author | Karol Herbst <[email protected]> | 2019-05-12 15:55:15 +0200 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-05-13 23:40:40 +0200 |
commit | fc800af83bb4c5a0b0b9eec8cdea138d7477101b (patch) | |
tree | 03329e43cf3afde69e271e044644fce6974fd867 /src/gallium/drivers/nouveau/codegen | |
parent | 358e52383cda8bc71156298a03cb7d980b2e3097 (diff) |
nv50/ir/nir: make use of SYSTEM_VALUE_MAX when iterating read sysvals
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Pierre Moreau <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |