Summary: | progs/perf/genmipmap segfaults in glGenerateMipmap() | ||
---|---|---|---|
Product: | Mesa | Reporter: | Will Dyson <will.dyson> |
Component: | Other | Assignee: | mesa-dev |
Status: | RESOLVED NOTOURBUG | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | monraaf |
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Will Dyson
2009-12-18 18:50:14 UTC
It does segfault here with R600 but not with software renderer. The environment variable to force the software renderer is LIBGL_ALWAYS_SOFTWARE not LIBGL_SOFTWARE_RENDERING. Are you sure you were running the program with the software renderer when it segfaulted? If not, you should change it to R600 bug. On second thought, the radeonGenerateMipmap function isn't called at all. So maybe it is a mesa bug? When run normal: ------------------------------------ 0x08067fe3 84 glGenerateMipmap(GL_TEXTURE_2D); (gdb) si 0x00000000 in ?? () When forced to software renderer: ------------------------------------ 0x08067fe3 84 glGenerateMipmap(GL_TEXTURE_2D); (gdb) si 0xb7f1b290 in glGenerateMipmapEXT () from /usr/lib/libGL.so.1 (gdb) si 0xb7f1b296 in glGenerateMipmapEXT () from /usr/lib/libGL.so.1 (gdb) si _mesa_GenerateMipmapEXT (target=3553) at main/fbobject.c:1944 The bug is that the test uses the GL_ARB_framebuffer_object version of the function, but the driver doesn't support GL_ARB_framebuffer_object. It doesn't work. *shock* GLEW sees that the driver doesn't support GL_ARB_framebuffer_object, so it correctly never calls glXGetProcAddress on glGenerateMipmap. Since the driver does support GL_EXT_framebuffer_object, it does call glXGetProcAddress on glGenerateMipmapEXT. I've added a test for GL_ARB_framebuffer_object in genmipmap.c on the 7.7 branch. If you want to submit a patch for using GL_EXT_framebuffer_object, feel free. Hello, I can reproduce this bug every time, both with Fedora 13 and 14, latest KDE. Just enabling desktop effects causes the error. Please see the following bug reports, already posted to bugs.kde.org for backtraces (two, actually, one for fc13 and one for fc14, both are usable.) https://bugs.kde.org/show_bug.cgi?id=257492 https://bugs.kde.org/show_bug.cgi?id=257508 BR, Hristo (In reply to comment #5) > Hello, > > I can reproduce this bug every time, both with Fedora 13 and 14, latest KDE. > Just enabling desktop effects causes the error. Please see the following bug > reports, already posted to bugs.kde.org for backtraces (two, actually, one for > fc13 and one for fc14, both are usable.) > > https://bugs.kde.org/show_bug.cgi?id=257492 > https://bugs.kde.org/show_bug.cgi?id=257508 These appear to be a completely different bug. They're also marked a duplicates of another bug. That bug (https://bugs.kde.org/show_bug.cgi?id=243767) is marked as "fixed upstream." Perhaps you need updated Mesa bits. In any case, I'm closing this bug. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.