projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
731870f
)
nir: Add a variable_foreach_safe helper
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 25 Mar 2016 17:18:35 +0000
(10:18 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 29 Mar 2016 01:32:48 +0000
(18:32 -0700)
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir.h
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir.h
b/src/compiler/nir/nir.h
index 37d2907a82bda0fcce4a3989f2236bcda25e30ba..6bd871dc43adf02483e41380196df2333ab2949a 100644
(file)
--- a/
src/compiler/nir/nir.h
+++ b/
src/compiler/nir/nir.h
@@
-334,6
+334,9
@@
typedef struct nir_variable {
#define nir_foreach_variable(var, var_list) \
foreach_list_typed(nir_variable, var, node, var_list)
+#define nir_foreach_variable_safe(var, var_list) \
+ foreach_list_typed_safe(nir_variable, var, node, var_list)
+
static inline bool
nir_variable_is_global(const nir_variable *var)
{