From: Eric Anholt Date: Tue, 9 Apr 2019 04:01:02 +0000 (-0700) Subject: vc4: Don't forget to set the range when scalarizing our uniforms. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7347d09d6ab822ba2430c41a40312393580bd422;p=mesa.git vc4: Don't forget to set the range when scalarizing our uniforms. In the next commit, we'll want this for handling UBO access clamping. Reviewed-by: Kenneth Graunke --- diff --git a/src/gallium/drivers/vc4/vc4_nir_lower_io.c b/src/gallium/drivers/vc4/vc4_nir_lower_io.c index 27051ec4030..5dbc2c8e324 100644 --- a/src/gallium/drivers/vc4/vc4_nir_lower_io.c +++ b/src/gallium/drivers/vc4/vc4_nir_lower_io.c @@ -339,6 +339,8 @@ vc4_nir_lower_uniform(struct vc4_compile *c, nir_builder *b, nir_intrinsic_set_base(intr_comp, nir_intrinsic_base(intr) * 16 + i * 4); + nir_intrinsic_set_range(intr_comp, + nir_intrinsic_range(intr) * 16 - i * 4); intr_comp->src[0] = nir_src_for_ssa(nir_ishl(b, intr->src[0].ssa,