OSDN Git Service

i965: Fix slow leak of brw->wm.compile_data->store
authorEric Anholt <eric@anholt.net>
Tue, 6 Nov 2012 17:48:51 +0000 (09:48 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 8 Nov 2012 22:50:32 +0000 (14:50 -0800)
commit2fcaf4eae890930fc591df2dc9ad4f6422e8eed0
tree113b8333b86ddbc172938cf2a8b1fad283d5d246
parent177c82555b24a80c15c34315ff17437cc39d1ba5
i965: Fix slow leak of brw->wm.compile_data->store

We were successfully freeing our compile data at context destroy, but until
then we were allocating a new store every compile without freeing it.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56019
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/i965/brw_wm.c