Mesa (main): nir: Increase nir_variable_data::mode to 16 bits
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 8 22:03:45 UTC 2022
Module: Mesa
Branch: main
Commit: 2d221c64e78db76e4002f27e2fb5571f4c271494
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2d221c64e78db76e4002f27e2fb5571f4c271494
Author: Jason Ekstrand <jason.ekstrand at collabora.com>
Date: Wed Jun 8 13:47:31 2022 -0500
nir: Increase nir_variable_data::mode to 16 bits
This is required if we want to have variables with nir_var_mem_global
which we will for CL eventually. Also, they're useful in unit tests
because they're the most generic thing imaginable and can't get
eliminated by normal means.
Cc: mesa-stable at lists.freedesktop.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16894>
---
src/compiler/nir/nir.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 4b065dfe1e8..295ab30f24c 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -424,7 +424,7 @@ typedef struct nir_variable {
*
* \sa nir_variable_mode
*/
- unsigned mode:15;
+ unsigned mode:16;
/**
* Is the variable read-only?
More information about the mesa-commit
mailing list