Module: Mesa
Branch: master
Commit: 05f165b62d1adce60b18783407c80b9fa2efa533
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=05f165b62d1adce60b18783407c80b9fa2efa533

Author: Eric Anholt <e...@anholt.net>
Date:   Wed Oct 29 15:15:29 2014 -0700

vc4: Mark a big array as const.

Drops 1kb of code from this inner loop, in exchange for 2.5k of data.

---

 src/gallium/drivers/vc4/vc4_program.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/vc4/vc4_program.c 
b/src/gallium/drivers/vc4/vc4_program.c
index ef0d5b8..5fab1de 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,

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to