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.
This commit is contained in:
Eric Anholt
2015-06-16 12:03:10 -07:00
parent 2eac356467
commit 507f3e708c
@@ -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;