summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300
diff options
context:
space:
mode:
authorMaciej Cencora <[email protected]>2009-04-24 16:28:47 +0200
committerDave Airlie <[email protected]>2009-04-27 19:08:41 +1000
commit033d1365e6fa6e57bc11b47831af0cb4b7ad2edf (patch)
tree045da1a67e199c05be8207b00a6a6c263fc65bf0 /src/mesa/drivers/dri/r300
parent7f6b13be86884486baad1e7750511ce4a2eedde6 (diff)
r300: fix performance regression
This performance regression on non TCL hw was introduced by ed4c6cbe017b4e8bacb7e012d4baaf77a20a2c33. This patch depends on "r300: always route 4 texcoord components to RS" and "r300: add point attenuation stage for TCL fallbacks".
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.c b/src/mesa/drivers/dri/r300/r300_context.c
index 51198901573..c80dcd8420b 100644
--- a/src/mesa/drivers/dri/r300/r300_context.c
+++ b/src/mesa/drivers/dri/r300/r300_context.c
@@ -364,7 +364,10 @@ GLboolean r300CreateContext(const __GLcontextModes * glVisual,
ctx = r300->radeon.glCtx;
r300InitConstValues(ctx, screen);
- ctx->VertexProgram._MaintainTnlProgram = GL_TRUE;
+
+ if (hw_tcl_on)
+ ctx->VertexProgram._MaintainTnlProgram = GL_TRUE;
+
ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE;
/* Initialize the software rasterizer and helper modules.