From 2d221c64e78db76e4002f27e2fb5571f4c271494 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 8 Jun 2022 13:47:31 -0500 Subject: [PATCH] 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@lists.freedesktop.org Part-of: --- 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?