freedreno/ir3: Don't access beyond available regs
authorKristian H. Kristensen <hoegsberg@chromium.org>
Thu, 28 Mar 2019 06:05:01 +0000 (23:05 -0700)
committerKristian H. Kristensen <hoegsberg@chromium.org>
Thu, 28 Mar 2019 17:26:32 +0000 (10:26 -0700)
commitf30d4a1ccaece3578fb92d245cc44a5c7dccdd7d
tree45a5c58af9d2bae521e0dc5ab97411906bae9de9
parent7fefa4610d96bc65322c73879da83b24487b2c90
freedreno/ir3: Don't access beyond available regs

emit_cat5() needs to check if the last optional reg is there before it
accesses it.

Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3.c