i965: Move prepare_wm_surfaces texobj declarations inside of _ReallyEnabled.
authorEric Anholt <eric@anholt.net>
Tue, 17 May 2011 16:11:38 +0000 (09:11 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 31 May 2011 19:07:28 +0000 (12:07 -0700)
commitd1946f53482a5a490a1da86d9bf9a3e2e866c0c4
treeb16e89971f8cab78234b6025af6152d70f2da48a
parentf29bc77572eb68c6e93371a5c7a9c4e4d1f9ee35
i965: Move prepare_wm_surfaces texobj declarations inside of _ReallyEnabled.

Interestingly, the compiler wasn't doing this for us at -O2, so we
were doing the computation for every non-_ReallyEnabled unit.

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