From 507f3e708cbd10a4272aeffa0f066f1a80b48239 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 16 Jun 2015 12:03:10 -0700 Subject: [PATCH] vc4: R4 is not a valid register for clamped direct texturing. Our array only goes to R3, and R4 is a special case that shouldn't be used. --- src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c b/src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c index 2e727a4425b..ba1ae0a1925 100644 --- a/src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c +++ b/src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c @@ -88,7 +88,7 @@ raddr_add_a_to_live_reg_index(uint64_t inst) return raddr_a; } else if (add_a == QPU_MUX_B) { return 32 + raddr_b; - } else if (add_a <= QPU_MUX_R4) { + } else if (add_a <= QPU_MUX_R3) { return 64 + add_a; } else { return ~0; -- 2.30.2