aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/nir/nir_clamp_psiz.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/nir/nir_clamp_psiz.c b/src/gallium/drivers/panfrost/nir/nir_clamp_psiz.c
index fb42406750b..249a400a19e 100644
--- a/src/gallium/drivers/panfrost/nir/nir_clamp_psiz.c
+++ b/src/gallium/drivers/panfrost/nir/nir_clamp_psiz.c
@@ -54,7 +54,8 @@ nir_clamp_psiz(nir_shader *shader, float min_size, float max_size)
nir_builder_init(&b, func->impl);
b.cursor = nir_before_instr(instr);
- nir_ssa_def *in_size = nir_ssa_for_src(&b, intr->src[1], 1);
+ nir_ssa_def *in_size = nir_ssa_for_src(&b, intr->src[1],
+ intr->num_components);
nir_ssa_def *clamped =
nir_fmin(&b,