On Wed, 27 Nov 2002 09:44:52 +0100
Felix K�hling <[EMAIL PROTECTED]> wrote:
> On Tue, 26 Nov 2002 22:04:59 +0000
> Keith Whitwell <[EMAIL PROTECTED]> wrote:
>
> > Felix K�hling wrote:
> > > Hi,
> > >
> > > clipping of lines at the edges of the viewing volume doesn't seem to
> > > work. The problem occurs both with RADEON_TCL_FORCE_DISABLE and with
> > > LIBGL_ALWAYS_INDIRECT. If I use a glOrtho (-1.0, 1.0, -1.0, 1.0, -1.0,
> > > 1.0) projection this works:
> > >
> > > glBegin(GL_LINES);
> > > glColor3f(1.0, 0.0, 0.0);
> > > glVertex2f(0.0, 0.0);
> > > glVertex2f(0.5, 0.5);
> > > glEnd();
> > >
> > > but this does not:
> > >
> > > glBegin(GL_LINES);
> > > glColor3f(1.0, 0.0, 0.0);
> > > glVertex2f(0.0, 0.0);
> > > glVertex2f(1.5, 0.5);
> > > glEnd();
> > >
> > > With Radeon HW TCL both work. I've tried to dig into the mesa code. In
> > > the debugger I could see where the clipping And and Or masks are set,
> > > correctly as it seems (clip_test2 called from run_vertex_stage). But I
> > > couldn't find the place where the actual clipping is supposed to occur
> > > :(
> >
> > Have a look at #define RENDER_LINE in extras/Mesa/src/tnl/t_vb_render.c.
>
> Thanks. I think it's another compiler bug. Inserting some debugging
> output into the LINE_CLIP template in extras/Mesa/src/tnl/t_vb_cliptmp.h
> made the problem go away. I'll look into it again later this week.
In fact it's the same problem as last time, MMX instructions among FPU
instructions. Just this time I couldn't find any suspicios type aliasing
that seemed to be the trigger last time. So my only advice for people
using gcc 3.2 (not 3.2.1) with optimizations for a CPU that supports MMX
is to add -mno-mmx and -mno-3dnow if appropriate.
Regards,
Felix
__\|/__ ___ ___ ___
__Tsch��_______\_6 6_/___/__ \___/__ \___/___\___You can do anything,___
_____Felix_______\�/\ \_____\ \_____\ \______U___just not everything____
[EMAIL PROTECTED] >o<__/ \___/ \___/ at the same time!
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel