On Sat, 2009-04-18 at 09:21 -0400, GS Hunt wrote:
> Michel Dänzer wrote:
> > On Fri, 2009-04-17 at 22:25 -0400, GS Hunt wrote:
> >> Please bear with me, I am not a developer.
> >>
> >> I am using an RS740 chip HS2100IGP integrated Radeon Video Card.
> >>
> >> It uses the R300 driver, (support added in the 2.6.28 kernel by Alex
> >> Deucher)
> >>
> >> 3D rendering is normal in Mesa 7.2, but is slow in subsequent versions.
> >>
> >> CPU useage goes to 100%, and 3D framerates drop dramtically.
> >>
> >> glxinfo shows:
> >>
> >> Direct rendering: YES
> >> OpenGL renderer string: Mesa DRI R300 20060815 NO-TCL
> >>
> >>
> >> This commit is good:
> >>
> >> http://lists.freedesktop.org/archives/mesa-commit/2008-September/004140.html
> >>
> >>
> >> This commit is the earliest which best exhibits the problem:
> >>
> >> http://lists.freedesktop.org/archives/mesa-commit/2008-September/004354.html
> > 
> > Does this patch fix the problem?
> > 
> > 
> > diff --git a/src/mesa/drivers/dri/r300/r300_context.c 
> > b/src/mesa/drivers/dri/r300/r300_context.c
> > index 12bee1a..4de95f1 100644
> > --- a/src/mesa/drivers/dri/r300/r300_context.c
> > +++ b/src/mesa/drivers/dri/r300/r300_context.c
> > @@ -374,7 +374,6 @@ GLboolean r300CreateContext(const __GLcontextModes * 
> > glVisual,
> >     ctx->Const.FragmentProgram.MaxNativeTexIndirections =
> >         PFS_MAX_TEX_INDIRECT;
> >     ctx->Const.FragmentProgram.MaxNativeAddressRegs = 0;    /* and these 
> > are?? */
> > -   ctx->VertexProgram._MaintainTnlProgram = GL_TRUE;
> >     ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE;
> >  
> >     driInitExtensions(ctx, card_extensions, GL_TRUE);
> > @@ -421,7 +420,8 @@ GLboolean r300CreateContext(const __GLcontextModes * 
> > glVisual,
> >             }
> >             TCL_FALLBACK(r300->radeon.glCtx,
> >                          RADEON_TCL_FALLBACK_TCL_DISABLE, 1);
> > -   }
> > +   } else
> > +           ctx->VertexProgram._MaintainTnlProgram = GL_TRUE;
> >  
> >     return GL_TRUE;
> >  }
> > 
> > 
> 
> YES.
> 
> CPU usage normal, FPS are better.

Maciej Cencora mentioned on IRC that he's seeing GPU lockups with this
change, so I'm not pushing it for now - decreased performance is
probably the lesser evil than lockups...


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to