i965: remove cache_aux_free_func array
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 Oct 2015 11:38:11 +0000 (12:38 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Oct 2015 09:28:38 +0000 (02:28 -0700)
commit0325f6822899fa58963094e3bb6433e3c6d5b374
treee8a019143bf359c1bfb2e9d3ca63ed8f9c4697c5
parent74fcc4c41fe547ea5fb8e23f25fc71b25f5afe96
i965: remove cache_aux_free_func array

There is only one function that can be called, which is well known at
compilation time.

The abstraction used here seems unnecessary, so let's use a direct call
to brw_stage_prog_data_free() when appropriate, cut down the size of
struct brw_cache.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state_cache.c