On Mon, 07 May 2007 09:27:33 -0600
Brian Paul <[EMAIL PROTECTED]> wrote:
> Aapo Tahkola wrote:
> > On Mon, 07 May 2007 08:40:14 -0600
> > Brian Paul <[EMAIL PROTECTED]> wrote:
> >
> >> Aapo Tahkola wrote:
> >>> bt:
> >>>
> >>> -([EMAIL PROTECTED])-( /media/movies/r300/mesa/progs/tests )
> >>> gdb ./dinoshade GNU gdb 6.4.90-debian
> >>> Copyright (C) 2006 Free Software Foundation, Inc.
> >>> GDB is free software, covered by the GNU General Public License,
> >>> and you are welcome to change it and/or distribute copies of it
> >>> under certain conditions. Type "show copying" to see the
> >>> conditions. There is absolutely no warranty for GDB. Type "show
> >>> warranty" for details. This GDB was configured as
> >>> "i486-linux-gnu"...Using host libthread_db library
> >>> "/lib/tls/i686/cmov/libthread_db.so.1".
> >>>
> >>> (gdb) run
> >>> Starting program: /media/movies/r300/mesa/progs/tests/dinoshade
> >>> Failed to read a valid object file image from memory.
> >>> [Thread debugging using libthread_db enabled]
> >>> [New Thread -1212836176 (LWP 4514)]
> >>> *********************************WARN_ONCE*********************************
> >>> File r300_render.c function r300Fallback line 421
> >>> Software fallback:ctx->Stencil._TestTwoSide &&
> >>> (ctx->Stencil.Ref[0] != ctx->Stencil.Ref[1] ||
> >>> ctx->Stencil.ValueMask[0] != ctx->Stencil.ValueMask[1] ||
> >>> ctx->Stencil.WriteMask[0] != ctx->Stencil.WriteMask[1])
> >>> ***************************************************************************
> >>>
> >>> Program received signal SIGSEGV, Segmentation fault.
> >>> [Switching to Thread -1212836176 (LWP 4514)]
> >>> 0xb7a794ef in quadfunc_unfilled_rgba (ctx=0x805dd80, v0=2, v1=0,
> >>> v2=1, v3=3) at swrast_setup/ss_tritmp.h:201
> >>> 201 GLubyte ef1 = VB->EdgeFlag[v1];
> >> That line would be hit when drawing a GL_QUAD with GL_POLYGON_MODE
> >> = GL_LINE or GL_POINT.
> >>
> >> Can you verify that's true?
> >> Is VB->EdgeFlag NULL?
> >
> > (gdb) print VB->EdgeFlag
> > $1 = (GLboolean *) 0x0
> > (gdb) print ctx->Polygon.FrontMode
> > $2 = 6914
> > (gdb) print /x ctx->Polygon.FrontMode
> > $3 = 0x1b02
> > (gdb) print /x ((TNLcontext *)((ctx)->swtnl_context))->vb
> > $4 = {Size = 0xbd1, Count = 0x2e, Elts = 0x0, ObjPtr = 0x80ca678,
> > EyePtr = 0x80caa88, ClipPtr = 0x80caaa4, NdcPtr = 0x80caac0,
> > ClipOrMask = 0x0, ClipAndMask = 0x0, ClipMask = 0x80ee2c0,
> > NormalPtr = 0x80ee29c, NormalLengthPtr = 0x0, EdgeFlag = 0x0,
> > TexCoordPtr = { 0x80ca758, 0x80ca774, 0x80ca790, 0x80ca7ac,
> > 0x80ca7c8, 0x80ca7e4, 0x80ca800, 0x80ca81c}, IndexPtr = {0x80ca720,
> > 0x0}, ColorPtr = {0x80fac14, 0x0}, SecondaryColorPtr = {0x80ca6e8,
> > 0x0}, FogCoordPtr = 0x80ca704, Primitive = 0x80b6acc,
> > PrimitiveCount = 0x1, AttribPtr = {0x80caac0, 0x80ca694, 0x80ee29c,
> > 0x80fac14, 0x80ca6e8, 0x80ca704, 0x80ca720, 0x80ca73c, 0x80ca758,
> > 0x80ca774, 0x80ca790, 0x80ca7ac, 0x80ca7c8, 0x80ca7e4, 0x80ca800,
> > 0x80ca81c, 0x80ca838, 0x80ca854, 0x80ca870, 0x80ca88c, 0x80ca8a8,
> > 0x80ca8c4, 0x80ca8e0, 0x80ca8fc, 0x80ca918, 0x80ca934, 0x80ca950,
> > 0x80ca96c, 0x80ca988, 0x80ca9a4, 0x80ca9c0, 0x80ca9dc}}
> > (gdb) print /x ((TNLcontext
> > *)((ctx)->swtnl_context))->vb.Primitive[0] $5 = {mode = 0x8,
> > indexed = 0x0, begin = 0x1, end = 0x1, weak = 0x0, pad = 0x0, start
> > = 0x0, count = 0x2e}
> >
> > (gdb) print /x ctx->Polygon.FrontMode
> > $3 = 0x1b02
>
> And ctx->Polygon.BackMode?
0x1b02
>
>
> > So no, no, yes.
>
> I suggest you investigate why/how quadfunc_unfilled_rgba() is getting
> called if the front/back polygon mode is GL_FILL.
It's hard coded for all I can see:
ss_triangle.c: #define IND (SS_UNFILLED_BIT)
ss_triangle.c: #define TAG(x) x##_unfilled
ss_triangle.c: #include "ss_tritmp.h"
ss_tritmp.h: if (IND & SS_UNFILLED_BIT) {
Not my cup of tea...
--
Aapo Tahkola
-------------------------------------------------------------------------
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