From: Eric Anholt Date: Wed, 29 Oct 2014 22:15:29 +0000 (-0700) Subject: vc4: Mark a big array as const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05f165b62d1adce60b18783407c80b9fa2efa533;p=mesa.git vc4: Mark a big array as const. Drops 1kb of code from this inner loop, in exchange for 2.5k of data. --- diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index ef0d5b89c93..5fab1deb6bf 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -1247,7 +1247,7 @@ static void emit_tgsi_instruction(struct vc4_compile *c, struct tgsi_full_instruction *tgsi_inst) { - struct { + static const struct { enum qop op; struct qreg (*func)(struct vc4_compile *c, struct tgsi_full_instruction *tgsi_inst,