i965: Make the brw_format_for_mesa_format table static const.
authorEric Anholt <eric@anholt.net>
Wed, 22 Jun 2011 00:38:20 +0000 (17:38 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 24 Jun 2011 17:37:22 +0000 (10:37 -0700)
commit0c27dcb75cf43bd58d32c3d5d580f0d3145e27d8
treed257f4f32215974c81a6d01e26b374982b2a2fe8
parent3541cc0d40f86d8ea63a876b7215831335ec677d
i965: Make the brw_format_for_mesa_format table static const.

Once again, assuming the compiler is clever works out so poorly.  The
generated code initialized the structure on the stack, then did a
lookup into it.  This was a performance regression from
70c6cd39bd9396b0d3f9e84df41fd8bef1f26cc4.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c