i965: Disable the swrast context setup on GL 3.1 core.
authorEric Anholt <eric@anholt.net>
Sun, 26 Aug 2012 22:29:12 +0000 (15:29 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 Aug 2012 18:43:04 +0000 (11:43 -0700)
commit67e9ae856355be532455c1cf1211d59b3a4c5992
tree93ec803a9a79e7485d6a33a0f97ca810b01d22b9
parent993c52d0be5bdf0e30e64ab4c6e1347c5dcb8e3b
i965: Disable the swrast context setup on GL 3.1 core.

I've reviewed the code, and the swrast callsites remaining are all in
drawpixels/copypixels/bitmap/accum, or _swrast_BlitFramebuffer that shouldn't
be hit.  A piglit run with the context setup disabled on legacy GL and GLES2
showed regressions only in the copypixels and drawpixels tests.

If the context type is forced, this reduces the shader_runner maximum heap
size for glsl-algebraic-add-add-1.shader_test from 15,137,496b to 4,165,376b.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_span.c