Hi

While looking at the R300 driver. I am trying to understand the driver.
I have found something i find interesting.

I am playing NWN and have fore some time had a little problem when i use
the scroll wheal to zoom in and out. Everything get rather slow when i
zoomed close on my character.

I have been playing around with the dri drivers for the R300 (I have a
ati radeon X700 PCIE carde). The attached patch makes my problem in NWN
go away.

I don't know yet why it works like that but with a bit of luck i might
find out some day.



/Tommy
diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c
index ecd7fea..3ccc86d 100644
--- a/src/mesa/drivers/dri/r300/r300_render.c
+++ b/src/mesa/drivers/dri/r300/r300_render.c
@@ -471,7 +471,12 @@ static GLboolean r300_run_render(GLcontext *ctx,
 	if (r300Fallback(ctx) >= R300_FALLBACK_RAST)
 		return GL_TRUE;
 
-	return r300_run_vb_render(ctx, stage);
+	GLboolean oldhw_tcl_on=hw_tcl_on;
+	hw_tcl_on = GL_FALSE;
+	GLboolean retVal=r300_run_vb_render(ctx, stage);
+	hw_tcl_on = oldhw_tcl_on;
+	
+	return retVal;
 }
 
 const struct tnl_pipeline_stage _r300_render_stage = {
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to