Tommy Schultz Lassen skrev:
> 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
>
> ------------------------------------------------------------------------
Got a bit further. I found out that VERT_ATTRIB_WEIGHT is set but that
VB->AttribPtr[VERT_ATTRIB_WEIGHT].type==0.
but only when hw_tcl_on == GL_FALSE it docent get set.
It seems that there is a problem in the R300 driver.
This little patch disables hw_tcl when VERT_ATTRIB_WEIGHT is set. That
fixes my problem i NWN.
/Tommy
diff --git a/src/mesa/drivers/dri/r300/r300_render.c b/src/mesa/drivers/dri/r300/r300_render.c
index ecd7fea..ea82dad 100644
--- a/src/mesa/drivers/dri/r300/r300_render.c
+++ b/src/mesa/drivers/dri/r300/r300_render.c
@@ -504,6 +504,11 @@ static GLboolean r300_run_tcl_render(GLcontext *ctx,
r300UpdateShaders(rmesa);
vp = (struct r300_vertex_program *)CURRENT_VERTEX_SHADER(ctx);
+ /* Dont handle WEIGHT at the moment. */
+ if(vp->key.InputsRead & (1 << VERT_ATTRIB_WEIGHT)){
+ hw_tcl_on = GL_FALSE;
+ return GL_TRUE;
+ }
#if 0 /* Draw every second request with software arb vp */
vp->native++;
vp->native &= 1;
-------------------------------------------------------------------------
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