diff options
author | Jason Ekstrand <[email protected]> | 2018-12-13 16:50:19 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-01-08 00:38:30 +0000 |
commit | e90b738f201e7281e2a4cf43eddd2d15eb942cce (patch) | |
tree | 898e6403244d61e2e8640d11a6b84d0142646dd3 /src/compiler/nir/nir.h | |
parent | f393b10b3f8713d658240bc889b7dbb455ef2d42 (diff) |
nir/vulkan: Add a descriptor type to vulkan resource intrinsics
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 553410b92d1..8db7cc44aef 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1278,6 +1278,11 @@ typedef enum { NIR_INTRINSIC_ALIGN_MUL = 17, NIR_INTRINSIC_ALIGN_OFFSET = 18, + /** + * The Vulkan descriptor type for a vulkan_resource_[re]index intrinsic. + */ + NIR_INTRINSIC_DESC_TYPE = 19, + NIR_INTRINSIC_NUM_INDEX_FLAGS, } nir_intrinsic_index_flag; @@ -1378,6 +1383,7 @@ INTRINSIC_IDX_ACCESSORS(access, ACCESS, enum gl_access_qualifier) INTRINSIC_IDX_ACCESSORS(format, FORMAT, unsigned) INTRINSIC_IDX_ACCESSORS(align_mul, ALIGN_MUL, unsigned) INTRINSIC_IDX_ACCESSORS(align_offset, ALIGN_OFFSET, unsigned) +INTRINSIC_IDX_ACCESSORS(desc_type, DESC_TYPE, unsigned) static inline void nir_intrinsic_set_align(nir_intrinsic_instr *intrin, |