summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_wm.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-08-26 21:19:05 -0700
committerEric Anholt <eric@anholt.net>2012-09-07 08:29:48 -0700
commitf144b78dfbb97a70121be6f20d10bad8111267e3 (patch)
treee8e9f1d63ba522ce8d3f02559ea29111403c6c3b /src/mesa/drivers/dri/i965/brw_wm.h
parent99596cba7828af67bfcd0f2dafcb44b65d39d239 (diff)
downloadexternal_mesa3d-f144b78dfbb97a70121be6f20d10bad8111267e3.zip
external_mesa3d-f144b78dfbb97a70121be6f20d10bad8111267e3.tar.gz
external_mesa3d-f144b78dfbb97a70121be6f20d10bad8111267e3.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h
index d2936c2..a4b2046 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.h
+++ b/src/mesa/drivers/dri/i965/brw_wm.h
@@ -486,5 +486,6 @@ void brw_wm_debug_recompile(struct brw_context *brw,
const struct brw_wm_prog_key *key);
bool brw_wm_prog_data_compare(const void *a, const void *b,
int aux_size, const void *key);
+void brw_wm_prog_data_free(const void *in_prog_data);
#endif