diff options
author | Eric Anholt <[email protected]> | 2014-10-29 15:15:29 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-11-18 12:42:52 -0800 |
commit | 05f165b62d1adce60b18783407c80b9fa2efa533 (patch) | |
tree | 027ec9cbd73e621a9deb0d242405c6ae310893dc /src/gallium/drivers/vc4/vc4_program.c | |
parent | 1398ed724a90bd608ac4f6206c37eb2792ce9ab1 (diff) |
vc4: Mark a big array as const.
Drops 1kb of code from this inner loop, in exchange for 2.5k of data.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |