http://bugs.freedesktop.org/show_bug.cgi?id=11332





------- Comment #1 from [EMAIL PROTECTED]  2007-06-22 02:21 PST -------
The feedback buffer is set in feedback_vertex. Below is the stack:

#0  feedback_vertex (ctx=0x610f60, v=0x2aec3f717040, pv=0x2aec3f717040) at
swrast/s_feedback.c:40
#1  0x00002aec3ca85c75 in _swrast_feedback_point (ctx=0x610f60,
v=0x2aec3f717040) at swrast/s_feedback.c:113
#2  0x00002aec3c9f28a7 in _swrast_validate_point (ctx=0x610f60,
v0=0x2aec3f717040) at swrast/s_context.c:380
#3  0x00002aec3c9f1d2a in _swrast_Point (ctx=0x610f60, v0=0x2aec3f717040) at
swrast/s_context.c:744
#4  0x00002aec3ca2b063 in swsetup_points (ctx=0x610f60, first=<value optimized
out>, last=<value optimized out>)
    at swrast_setup/ss_triangle.c:271
#5  0x00002aec3c9bb156 in _tnl_render_points_verts (ctx=0x610f60, start=0,
count=1, flags=<value optimized out>)
    at tnl/t_vb_rendertmp.h:69
#6  0x00002aec3c9bc801 in run_render (ctx=0x610f60, stage=<value optimized
out>) at tnl/t_vb_render.c:320
#7  0x00002aec3c9b9b6c in _tnl_run_pipeline (ctx=0x610f60) at
tnl/t_pipeline.c:158
#8  0x00002aec3c9ba6f8 in _tnl_draw_prims (ctx=0x610f60, arrays=0x656b80,
prim=0x655364, nr_prims=1, ib=0x0, 
    min_index=1, max_index=0) at tnl/t_draw.c:403
#9  0x00002aec3c91d24c in brw_draw_prims (ctx=0x610f60, arrays=0x656b80,
prim=0x655364, nr_prims=1, ib=0x0, 
    min_index=0, max_index=0) at brw_draw.c:463
#10 0x00002aec3c9b2f3c in vbo_exec_vtx_flush (exec=0x655120) at
vbo/vbo_exec_draw.c:215
#11 0x00002aec3c9ae6d9 in vbo_exec_FlushVertices (ctx=<value optimized out>,
flags=1064398912)
    at vbo/vbo_exec_api.c:680
#12 0x00002aec3c9596e8 in _mesa_RenderMode (mode=7168) at main/feedback.c:442
#13 0x00002aec3b7889b6 in glRenderMode (mode=7168) at
../../../src/mesa/glapi/glapitemp.h:1065
#14 0x0000000000400f95 in display () at feedback_temp.c:136

In feedback_vertex function, pv->color is not assigned value; however,
v->attrib[1] has the correct color value:
(gdb) p v->attrib
$44 = {{50, 50, 0, 1}, {0.840000033, 0.840000033, 0.840000033, 1}, {0, 0, 0,
0}, {0, 0, 0, 0}, {0, 0, 0, 1}, {0, 0, 
    0, 0} <repeats 15 times>}
(gdb) p pv->color
$45 = "\000\000\000"

It seems mesa forget to assign ctx->swsetup_context->verts->color.
We can do below fix:?
50         color[0] = pv->attrib[1][0];
51         color[1] = pv->attrib[1][1];
52         color[2] = pv->attrib[1][2];
53         color[3] = pv->attrib[1][3];


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
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