<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Lima cannot handle too many vertices because of limited pre-allocated buffer"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110408">110408</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Lima cannot handle too many vertices because of limited pre-allocated buffer
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>ARM
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>icenowylin@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When I try to run the bump:bump-render=high-poly test of glmark2-es2-drm on
Lima, it crashes with a segfault.

The backtrace shows:
                #0  0x0000ffffb3ab03e0 lima_ctx_buff_va (sun4i-drm_dri.so)
                #1  0x0000ffffb3ab43b4 lima_update_varying (sun4i-drm_dri.so)
                #2  0x0000ffffb3619304 u_vbuf_draw_vbo (sun4i-drm_dri.so)
                #3  0x0000ffffb37b15e4 st_draw_vbo (sun4i-drm_dri.so)
                #4  0x0000ffffb3852938 _mesa_draw_arrays (sun4i-drm_dri.so)
                #5  0x0000aaaade1d3954 _ZN4Mesh10render_vboEv (glmark2-es2-drm)
                #6  0x0000aaaade16dce4 _ZN9SceneBump4drawEv (glmark2-es2-drm)
                #7  0x0000aaaade156d10 _ZN8MainLoop4drawEv (glmark2-es2-drm)
                #8  0x0000aaaade157540 _ZN8MainLoop4stepEv (glmark2-es2-drm)
                #9  0x0000aaaade14aca0 _Z12do_benchmarkR6Canvas
(glmark2-es2-drm)
                #10 0x0000aaaade148948 main (glmark2-es2-drm)
                #11 0x0000ffffb400c638 __libc_start_main (libc.so.6)
                #12 0x0000aaaade14aaf0 $x (glmark2-es2-drm)
                #13 0x0000aaaade14aaf0 $x (glmark2-es2-drm)

>From inspection, lima_ctx_buff_va seems to be refering to a context buffer that
haven't been successfully allocated, and in lima_update_varying() the
allocation failure seems to be because the requested memory size is too big
(because the vertex count is big, 144000 for bump:bump-render=high-poly).

Should we use some better way than u_suballocator to allocate the memory for
the varying storage?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>