i965: Make the param pointer arrays for the WM dynamically sized.
authorEric Anholt <eric@anholt.net>
Mon, 27 Aug 2012 04:19:05 +0000 (21:19 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 7 Sep 2012 15:29:48 +0000 (08:29 -0700)
commitf144b78dfbb97a70121be6f20d10bad8111267e3
treee8e9f1d63ba522ce8d3f02559ea29111403c6c3b
parent99596cba7828af67bfcd0f2dafcb44b65d39d239
i965: Make the param pointer arrays for the WM dynamically sized.

Saves 26.5MB of wasted memory allocation in the l4d2 demo.

v2: Rebase on compare func change, fix comments.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_state_cache.c
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm.h