Commit efb566df authored by Kenneth Graunke's avatar Kenneth Graunke

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: 's avatarKenneth Graunke <>
Reviewed-by: 's avatarMatt Turner <>
Reviewed-by: 's avatarChad Versace <>
Reviewed-by: 's avatarKristian Høgsberg <>
parent 6aba035f
......@@ -557,7 +557,7 @@ intelInitContext(struct brw_context *brw,
* software fallbacks (which we have to support on legacy GL to do weird
* glDrawPixels(), glBitmap(), and other functions).
if (api != API_OPENGL_CORE) {
if (api != API_OPENGL_CORE && api != API_OPENGLES2) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment