diff options
author | Karol Herbst <[email protected]> | 2018-07-19 11:44:31 +0200 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2018-11-14 02:09:11 +0100 |
commit | 099728b1151184f7a110f3a16c999fe7ef9229cc (patch) | |
tree | 24b62893010910866fcfd6464f0d215203b18078 /src/intel | |
parent | 80db331c2d477f8f4bc5c2b0373573f505f676e5 (diff) |
nir: replace nir_load_system_value calls with appropiate builder functions
this helps reduce the overall code changes when a bit_size parameter is
added to nir_load_system_value
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_nir_lower_input_attachments.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_nir_lower_input_attachments.c b/src/intel/vulkan/anv_nir_lower_input_attachments.c index 97e1f48936a..655e5844955 100644 --- a/src/intel/vulkan/anv_nir_lower_input_attachments.c +++ b/src/intel/vulkan/anv_nir_lower_input_attachments.c @@ -61,8 +61,7 @@ try_lower_input_load(nir_function_impl *impl, nir_intrinsic_instr *load) nir_ssa_def *offset = nir_ssa_for_src(&b, load->src[1], 2); nir_ssa_def *pos = nir_iadd(&b, frag_coord, offset); - nir_ssa_def *layer = - nir_load_system_value(&b, nir_intrinsic_load_layer_id, 0); + nir_ssa_def *layer = nir_load_layer_id(&b); nir_ssa_def *coord = nir_vec3(&b, nir_channel(&b, pos, 0), nir_channel(&b, pos, 1), layer); |