summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-11-19 12:53:08 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:19:02 -0800
commitb5143edaeeb6f57558f5bb6fbd7f7cc39ad7489d (patch)
tree8362d1cbab931746f1cbe2095bceae6d74f0da5a /src/glsl/nir/nir.h
parent8219ff1796ab18d19fe9cf3cf93f463a984e2c80 (diff)
nir: Make array deref direct vs. indirect an enum
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 6a872c508bd..021d4c91323 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -625,11 +625,16 @@ typedef struct {
nir_variable *var;
} nir_deref_var;
+typedef enum {
+ nir_deref_array_type_direct,
+ nir_deref_array_type_indirect,
+} nir_deref_array_type;
+
typedef struct {
nir_deref deref;
+ nir_deref_array_type deref_array_type;
unsigned base_offset;
- bool has_indirect;
nir_src indirect;
} nir_deref_array;