OSDN Git Service

mesa: Delay s_texcombine.c memory allocation until it's used.
authorEric Anholt <eric@anholt.net>
Thu, 22 Sep 2011 19:52:43 +0000 (12:52 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 2 Oct 2011 05:16:06 +0000 (22:16 -0700)
commit617cdcd4c7b1cffb584c829c35bdf9c9bf04627b
treea264de5ac5a54eaf2c3c65c15c7e225ec5339a0f
parentf7f678331d5e95d2266fe6b3ea1cfa47d6421065
mesa: Delay s_texcombine.c memory allocation until it's used.

Generally we're using fragment programs in all our drivers, so wasting
4MB for code that's never called is pretty lame.  Reduces i965 memory
allocation for a short shader program from 21,932,128B to 17,737,816B.
src/mesa/swrast/s_context.c
src/mesa/swrast/s_texcombine.c