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_lower_io.c | |
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_lower_io.c')
-rw-r--r-- | src/compiler/nir/nir_lower_io.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index 6840437394e..6d4a3d8cd89 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -277,6 +277,11 @@ nir_lower_io_block(nir_block *block, void *void_state) nir_intrinsic_set_base(load, intrin->variables[0]->var->data.driver_location); + if (load->intrinsic == nir_intrinsic_load_uniform) { + nir_intrinsic_set_range(load, + state->type_size(intrin->variables[0]->var->type)); + } + if (per_vertex) load->src[0] = nir_src_for_ssa(vertex_index); |