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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16894>
(cherry picked from commit 2d221c64e7)
This commit is contained in:
Jason Ekstrand 2022-06-08 13:47:31 -05:00 committed by Dylan Baker
parent 981fd93224
commit 8745ab574c
2 changed files with 2 additions and 2 deletions

View file

@ -4000,7 +4000,7 @@
"description": "nir: Increase nir_variable_data::mode to 16 bits",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -424,7 +424,7 @@ typedef struct nir_variable {
*
* \sa nir_variable_mode
*/
unsigned mode:15;
unsigned mode:16;
/**
* Is the variable read-only?