diff options
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index e991c625536..971d8c4979f 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -998,6 +998,7 @@ typedef enum { nir_deref_type_var, nir_deref_type_array, nir_deref_type_array_wildcard, + nir_deref_type_ptr_as_array, nir_deref_type_struct, nir_deref_type_cast, } nir_deref_type; @@ -1031,6 +1032,10 @@ typedef struct { struct { unsigned index; } strct; + + struct { + unsigned ptr_stride; + } cast; }; /** Destination to store the resulting "pointer" */ @@ -1078,6 +1083,8 @@ bool nir_deref_instr_has_indirect(nir_deref_instr *instr); bool nir_deref_instr_remove_if_unused(nir_deref_instr *instr); +unsigned nir_deref_instr_ptr_as_array_stride(nir_deref_instr *instr); + typedef struct { nir_instr instr; |