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

           Summary: vbo_exec_vtx_flush causes Floating point exception when
                    gets 0 vertsize.
           Product: Mesa
           Version: CVS
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: minor
          Priority: low
         Component: Mesa core
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=24218)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=24218)
I have made small patch that hacks around this problem. It's only a hack.

Function vbo_exec_vtx_flush insrc/mesa/vbo/vbo_exec_draw.c gets Floating point
exception when it gets vertex that looks like this:
http://pastebin.com/m1e77aeb7

It have 0 size and by looking in code:

exec->vtx.max_vert = ((VBO_VERT_BUFFER_SIZE - exec->vtx.buffer_used) /.
                            (exec->vtx.vertex_size * sizeof(GLfloat)));

exec->vtx.vertex_size ends as 0. Id divides by 0.

With my hack I was able to run this vertex without problems.

Tested on master and radeon-rewrite
System:
Radeon X1650pro


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

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to