iris: Add missing range_base/range to our nir_load_ubos.

Fixes: f3b33a5a35 ("nir: Add a range_base+range to nir_intrinsic_load_ubo().")
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Clayton Craft <clayton.a.craft@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6654>
This commit is contained in:
Eric Anholt 2020-09-08 15:35:19 -07:00 committed by Marge Bot
parent 4df0eef188
commit cc431f48f9
1 changed files with 2 additions and 0 deletions

View File

@ -557,6 +557,8 @@ iris_setup_uniforms(const struct brw_compiler *compiler,
load->src[0] = nir_src_for_ssa(temp_ubo_name);
load->src[1] = nir_src_for_ssa(offset);
nir_intrinsic_set_align(load, 4, 0);
nir_intrinsic_set_range_base(load, 0);
nir_intrinsic_set_range(load, ~0);
nir_ssa_dest_init(&load->instr, &load->dest,
intrin->dest.ssa.num_components,
intrin->dest.ssa.bit_size, NULL);