i965: Don't create a swrast context on ES2+.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Jul 2013 18:31:20 +0000 (11:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 29 Jul 2013 20:26:27 +0000 (13:26 -0700)
commitefb566dff22933517630537c2bfb8da34018ad8c
tree4bf1e55e746a7cc9b80a3f59ffa8a354337d7d6e
parent6aba035f6b0dee0e0b78b2110fa75463c7888c3a
i965: Don't create a swrast context on ES2+.

We already skip this for API_OPENGL_CORE; ES2+ is very similar.
The primary user of the swrast context is GL_SELECT and GL_FEEDBACK,
which have never existed in ES.

This saves approximately 18MB of memory in GLBenchmark 2.7 Egypt (ES2).
No regressions in es3conform on Ivybridge.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/intel_context.c