<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 - glDrawArrays does not take the "first" argument into account"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103332">103332</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>glDrawArrays does not take the "first" argument into account
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>17.2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>Drivers/Gallium/swr
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>laurent.renard@int.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I am using the glMultiDrawArrays command to render some text with multiple
triangle strip (2 triangles for each character).

With GALLIUM_DRIVER=swr only the first character is rendered.

I replace the glMuliDrawArrays command by a loop containing the glDrawArrays
command with the correct "first" vertex argument but it does not changes the
result.

If I then modifie the buffer in my loop to put the vertices I want to render at
the beginning of the buffer and use glDrawArrays(GL_TRIANGLE_STRIP, 0, count)
the rendering is OK.

If I switch to softpipe or llvmpipe the rendering is OK.

It is as if th draw arrays command were not taking the first parameter into
account.

(I also tested the code on NVidia proprietary driver and everything works well
and Intel HD Graphics+Windows too).

I am using JOGL since my app is in Java but I will try to provide a simpler
example if possible.</pre>
        </div>
      </p>


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

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