http://bugs.freedesktop.org/show_bug.cgi?id=12502
------- Comment #5 from [EMAIL PROTECTED] 2007-09-22 17:18 PST ------- (In reply to comment #4) > 'Size' is the user-provided VBO size, set when the app calls glBufferData(). > > With gdb, please run: > print *ctx->Array.ElementArrayBufferObj > print indexBytes > where I'm running WoW via wine; can I still use gdb? I'm currently putting a lot of fprintfs into main/bufferobj.c and am seeing the following: _mesa_BufferDataARB: size=12 ** target=GL_ELEMENT_ARRAY_BUFFER_ARB ** Calling BufferData(12) _mesa_buffer_data: Size=12 MapBufferARB: ** target=GL_ELEMENT_ARRAY_BUFFER_ARB _mesa_UnmapBufferARB: ** target=GL_ARRAY_BUFFER_ARB _mesa_UnmapBufferARB: ** target=GL_ELEMENT_ARRAY_BUFFER_ARB _mesa_BufferDataARB: size=144 ** target=GL_ARRAY_BUFFER_ARB ** Calling BufferData(144) _mesa_buffer_data: Size=144 MapBufferARB: ** target=GL_ARRAY_BUFFER_ARB _mesa_BufferDataARB: size=12 ** target=GL_ELEMENT_ARRAY_BUFFER_ARB ** Calling BufferData(12) _mesa_buffer_data: Size=12 MapBufferARB: ** target=GL_ELEMENT_ARRAY_BUFFER_ARB _mesa_UnmapBufferARB: ** target=GL_ARRAY_BUFFER_ARB _mesa_UnmapBufferARB: ** target=GL_ELEMENT_ARRAY_BUFFER_ARB _mesa_BufferDataARB: size=49152 ** target=GL_ARRAY_BUFFER_ARB ** Calling BufferData(49152) _mesa_buffer_data: Size=49152 MapBufferARB: ** target=GL_ARRAY_BUFFER_ARB _mesa_UnmapBufferARB: ** target=GL_ARRAY_BUFFER_ARB _mesa_BindBufferARB: bind_buffer_object: ** target=GL_ELEMENT_ARRAY_BUFFER_ARB glDrawRangeElements index out of buffer bounds: 192 12 ... etc. So it *looks* as if the most recent call to _mesa_BufferDataARB with target=GL_ELEMENT_ARRAY_BUFFER_ARB really was for 12 bytes. However, this doesn't explain how presumably the fglrx driver used to cope with the same program. Having said all this, I've noticed that the text doesn't always disappear immediately, and during the time that it is working OK I see stretches of DEBUG statements like: _mesa_BufferDataARB: size=576 ** target=GL_ELEMENT_ARRAY_BUFFER_ARB ** Calling BufferData(576) _mesa_buffer_data: Size=576 MapBufferARB: ** target=GL_ELEMENT_ARRAY_BUFFER_ARB _mesa_UnmapBufferARB: ** target=GL_ARRAY_BUFFER_ARB _mesa_UnmapBufferARB: ** target=GL_ELEMENT_ARRAY_BUFFER_ARB _mesa_BufferDataARB: size=49152 ** target=GL_ARRAY_BUFFER_ARB ** Calling BufferData(49152) _mesa_buffer_data: Size=49152 MapBufferARB: ** target=GL_ARRAY_BUFFER_ARB _mesa_UnmapBufferARB: ** target=GL_ARRAY_BUFFER_ARB _mesa_BindBufferARB: bind_buffer_object: ** target=GL_ELEMENT_ARRAY_BUFFER_ARB i.e. calls to populate ElementArrayBufferObj with 576 bytes. BTW, the _mesa_warning message in _mesa_validate_DrawRangeElements() incorrectly mentions glDrawElements instead of glDrawRangeElements. -- 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
