Mesa (master): zink: use UINT32_MAX instead of UINT_MAX
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Apr 30 12:11:51 UTC 2021
Module: Mesa
Branch: master
Commit: ab1fc9e32cc476163adb20c6278ec844af5ed477
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ab1fc9e32cc476163adb20c6278ec844af5ed477
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Thu Apr 8 10:23:08 2021 +0200
zink: use UINT32_MAX instead of UINT_MAX
This is a 32-bit argument, so on platforms where UINT_MAX is larger,
this is going to... well, do exactly the same thing, but this is
slightly clearer why.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10101>
---
src/gallium/drivers/zink/zink_compiler.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c
index d53ef4678be..7cdd0d5e94c 100644
--- a/src/gallium/drivers/zink/zink_compiler.c
+++ b/src/gallium/drivers/zink/zink_compiler.c
@@ -841,7 +841,8 @@ zink_shader_create(struct zink_screen *screen, struct nir_shader *nir,
create_vs_pushconst(nir);
else if (nir->info.stage == MESA_SHADER_TESS_CTRL ||
nir->info.stage == MESA_SHADER_TESS_EVAL) {
- NIR_PASS_V(nir, nir_lower_indirect_derefs, nir_var_shader_in | nir_var_shader_out, UINT_MAX);
+ NIR_PASS_V(nir, nir_lower_indirect_derefs, nir_var_shader_in |
+ nir_var_shader_out, UINT32_MAX);
NIR_PASS_V(nir, nir_lower_io_arrays_to_elements_no_indirects, false);
} else if (nir->info.stage == MESA_SHADER_KERNEL)
create_cs_pushconst(nir);
More information about the mesa-commit
mailing list