From: Rob Clark Date: Mon, 21 Oct 2019 23:33:50 +0000 (-0700) Subject: freedreno/ir3: fixup register footprint fixup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa8515463e525435cab7a69aae366ca99e9d3461;p=mesa.git freedreno/ir3: fixup register footprint fixup Small typo resulted in not converting footprint to vec4, meaning that we could potentially ask for quite a few more registers than required Signed-off-by: Rob Clark Reviewed-by: Kristian H. Kristensen --- diff --git a/src/freedreno/ir3/ir3_shader.c b/src/freedreno/ir3/ir3_shader.c index 4e1b1081764..7a0c28fd1a3 100644 --- a/src/freedreno/ir3/ir3_shader.c +++ b/src/freedreno/ir3/ir3_shader.c @@ -118,7 +118,7 @@ fixup_regfootprint(struct ir3_shader_variant *v, uint32_t gpu_id) v->info.max_reg = MAX2(v->info.max_reg, regid >> 3); } } else { - v->info.max_reg = MAX2(v->info.max_reg, regid); + v->info.max_reg = MAX2(v->info.max_reg, regid >> 2); } } }