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

           Summary: glDrawElements bug for large array via indirect glx,
                    plus patch
           Product: Mesa
           Version: CVS
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: normal
          Priority: medium
         Component: GLX
        AssignedTo: mesa3d-dev@lists.sourceforge.net
        ReportedBy: [EMAIL PROTECTED]


When connected to a remote x-server using indirect glx, the glDrawElements
client side vertex array routine has a bug for large arrays.

The bug is in routine emit_DrawElements_old in file:
Mesa/src/glx/x11/indirect_vertex_array.c

If the number of elements is too large to fit into a single X packet, it has to
be spilt into multiple requests using the X RenderLarge command. 
emit_DrawElements_old loops through the number of requests required, outputting
the maximum number of elements for a single request each time.  But it does not
increment the start element pointer, so that the first batch of elements is
repeatedly sent in every request.  Elements towards the end of the input array
are therefore never sent, and not rendered.

The emit_DrawElements_old routine implements the GL 1.1 DrawArrays protocol. 
This is the current protocol ("old" is a misnomer) used by X servers which
support OpenGL, including Xorg 7.x.  The bug can be demonstrated by sending a
large glDrawElements array to a remote display server.


-- 
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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to