diff options
author | Eric Anholt <eric@anholt.net> | 2012-08-26 15:29:12 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2012-08-28 11:43:04 -0700 |
commit | 67e9ae856355be532455c1cf1211d59b3a4c5992 (patch) | |
tree | 93ec803a9a79e7485d6a33a0f97ca810b01d22b9 /src/mesa/drivers/dri/i965/brw_context.c | |
parent | 993c52d0be5bdf0e30e64ab4c6e1347c5dcb8e3b (diff) | |
download | external_mesa3d-67e9ae856355be532455c1cf1211d59b3a4c5992.zip external_mesa3d-67e9ae856355be532455c1cf1211d59b3a4c5992.tar.gz external_mesa3d-67e9ae856355be532455c1cf1211d59b3a4c5992.tar.bz2 |
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 7f8197d..f83f89f 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -140,7 +140,9 @@ brwCreateContext(int api, /* Initialize swrast, tnl driver tables: */ intelInitSpanFuncs(ctx); - TNL_CONTEXT(ctx)->Driver.RunPipeline = _tnl_run_pipeline; + TNLcontext *tnl = TNL_CONTEXT(ctx); + if (tnl) + tnl->Driver.RunPipeline = _tnl_run_pipeline; ctx->Const.MaxDualSourceDrawBuffers = 1; ctx->Const.MaxDrawBuffers = BRW_MAX_DRAW_BUFFERS; |