[Mesa-dev] [PATCH] nv50/ir/nir: make use of SYSTEM_VALUE_MAX when iterating read sysvals
Pierre Moreau
dev at pmoreau.org
Sun May 12 19:09:00 UTC 2019
Reviewed-by: Pierre Moreau <dev at pmoreau.org>
On 2019-05-12 — 15:56, Karol Herbst wrote:
> Signed-off-by: Karol Herbst <kherbst at redhat.com>
> ---
> src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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 7e59b83e8fc..cce9357cec7 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
> @@ -1341,7 +1341,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;
>
> --
> 2.21.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190512/fdf81fdb/attachment.sig>
More information about the mesa-dev
mailing list