Mesa (radeon-rewrite): r300: fix performance regression

Dave Airlie airlied at kemper.freedesktop.org
Mon Apr 27 09:09:01 UTC 2009


Module: Mesa
Branch: radeon-rewrite
Commit: 033d1365e6fa6e57bc11b47831af0cb4b7ad2edf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=033d1365e6fa6e57bc11b47831af0cb4b7ad2edf

Author: Maciej Cencora <m.cencora at gmail.com>
Date:   Fri Apr 24 16:28:47 2009 +0200

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".

---

 src/mesa/drivers/dri/r300/r300_context.c |    5 ++++-
 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 5119890..c80dcd8 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.




More information about the mesa-commit mailing list