i965: Remove caching of surface state objects.
authorEric Anholt <eric@anholt.net>
Fri, 11 Jun 2010 06:45:51 +0000 (23:45 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 11 Jun 2010 07:15:59 +0000 (00:15 -0700)
commit178414eba402f9087ea505e7ef19f1becdd7a36d
treedc5d5e33be05ec830d971bc4129226fbb0d26cf5
parent73de09f265cb1c66d70fd9eb92021882bfbbbef6
i965: Remove caching of surface state objects.

It turns out that computing a 56 byte key to look up a 20-byte object
out of a hash table was some sort of a bad idea.  Whoops.

before:
[ # ]  backend                         test   min(s) median(s) stddev. count
[  0]       gl            firefox-talos-gfx   37.799   38.203   0.39%    6/6
after:
[  0]       gl            firefox-talos-gfx   34.761   34.784   0.17%    5/6
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_cache.c
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c