diff options
author | Jason Ekstrand <[email protected]> | 2015-11-24 13:52:49 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-14 15:59:33 -0700 |
commit | 63101177f32e7ebcaa6c71e046b3e599d21a20b5 (patch) | |
tree | dbb04011d1757ad376560c7c372eb05120c14877 /src/compiler/nir/nir.h | |
parent | 27bd8ac6f309b9f052a7fa9380ac5e12fb686e31 (diff) |
nir: Add another index to load_uniform to specify the range read
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
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 8067b4189a7..9d48356c6de 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -965,6 +965,12 @@ typedef enum { */ NIR_INTRINSIC_UCP_ID = 4, + /** + * The amount of data, starting from BASE, that this instruction may + * access. This is used to provide bounds if the offset is not constant. + */ + NIR_INTRINSIC_RANGE = 5, + NIR_INTRINSIC_NUM_INDEX_FLAGS, } nir_intrinsic_index_flag; @@ -1028,6 +1034,7 @@ INTRINSIC_IDX_ACCESSORS(write_mask, WRMASK, unsigned) INTRINSIC_IDX_ACCESSORS(base, BASE, int) INTRINSIC_IDX_ACCESSORS(stream_id, STREAM_ID, unsigned) INTRINSIC_IDX_ACCESSORS(ucp_id, UCP_ID, unsigned) +INTRINSIC_IDX_ACCESSORS(range, RANGE, unsigned) /** * \group texture information |