Bug#383387: libgl1-mesa-glx: printf() in line rendering loop

Nik A. Melchior melchior+debian at cmu.edu
Wed Aug 16 23:06:38 UTC 2006


Package: libgl1-mesa-glx
Version: 6.5.0.cvs.20060524-2
Severity: normal


The report is for the version of mesa in experimental.

There's some debugging output in the GL library that makes line drawing
unbearably slow.  I've been mystified by these sets of three hex numbers since
recent packaging changes have required the use of xorg/mesa from experimental
in order to enable direct rendering (I have an i855GM).  I finally got around to
building a package with debugging symbols and found the culprit.

There's a printf in src/mesa/tnl/t_vb_render.c line 89 which needs to be removed
(or made conditional for debugging purposes).  I'll include a backtrace at the
point where the macro is expanded, and attach a test program which is probably
not necessary anymore since I've tracked down the culprit.

Thanks!

#0  0xb78f0fdd in clip_render_lines_verts (ctx=0x8054980, start=0, count=84, 
    flags=49) at tnl/t_vb_rendertmp.h:85
#1  0xb78fc2e4 in run_render (ctx=0x8054980, stage=0x8298924)
    at tnl/t_vb_render.c:321
#2  0xb78e1f3a in _tnl_run_pipeline (ctx=0x8054980) at tnl/t_pipeline.c:162
#3  0xb783c438 in intelRunPipeline (ctx=0x8054980) at intel_tris.c:758
#4  0xb791f452 in _tnl_flush_vtx (ctx=0x8054980) at tnl/t_vtx_exec.c:281
#5  0xb79172cb in _tnl_FlushVertices (ctx=0x8054980, flags=1)
    at tnl/t_vtx_api.c:877
#6  0xb7840b45 in _mesa_Flush () at main/context.c:1817
#7  0xb7c5a226 in glFlush () at ../../../src/mesa/glapi/glapitemp.h:1160
#8  0xb7edf3e0 in glutSwapBuffers () at freeglut_display.c:51
#9  0x08048d33 in display_func () at ./test_i810_dri.c:53
#10 0xb7ee8d34 in fghcbDisplayWindow (window=0x804ecf8, enumerator=0xb7820f74)
    at freeglut_main.c:212
#11 0xb7eec99a in fgEnumWindows (enumCallback=0xb7ee8cd0 <fghcbDisplayWindow>, 
    enumerator=0xbfe5bd08) at freeglut_structure.c:388
#12 0xb7ee9263 in glutMainLoopEvent () at freeglut_main.c:251
#13 0xb7ee9cbe in glutMainLoop () at freeglut_main.c:1046
#14 0x08048a59 in main (argc=-1211216176, argv=0xb7dbe3a0)
    at ./test_i810_dri.c:75

-- System Information:
Debian Release: testing/unstable
  APT prefers experimental
  APT policy: (500, 'experimental'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.7-swsusp2
Locale: LANG=en_US.ISO-8859-1, LC_CTYPE=en_US.ISO-8859-1 (charmap=ISO-8859-1)

Versions of packages libgl1-mesa-glx depends on:
ii  libc6                         2.3.6-19   GNU C Library: Shared libraries
ii  libdrm2                       2.0.1-1    Userspace interface to kernel DRM 
ii  libx11-6                      2:1.0.0-8  X11 client-side library
ii  libxext6                      1:1.0.1-1  X11 miscellaneous extension librar
ii  libxxf86vm1                   1:1.0.1-1  X11 XFree86 video mode extension l

libgl1-mesa-glx recommends no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_i810_dri.c
Type: text/x-c
Size: 1796 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mesa-devel/attachments/20060816/375f5833/test_i810_dri.bin


More information about the Pkg-mesa-devel mailing list