<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 31.01.2011 19:46, Marek Olšák wrote:<br>
    <blockquote
      cite="mid:AANLkTi=OWdCo2_Ow7Vnsteo97OAzYh1TaeP_hz3OVcYw@mail.gmail.com"
      type="cite">
      <br>
      1) New vertex buffer manager<br>
      <br>
      This is how I'd like to put the burden of uploading user buffers
      out of the drivers. I've made a new vertex buffer manager. It can
      be found here:<br>
      <a moz-do-not-send="true"
href="http://cgit.freedesktop.org/%7Emareko/mesa/commit/?h=vbuf-mgr&amp;id=94a53b672dd238e6a50bb6b252614dc2e9f30ddf">http://cgit.freedesktop.org/~mareko/mesa/commit/?h=vbuf-mgr&amp;id=94a53b672dd238e6a50bb6b252614dc2e9f30ddf</a><br>
      <br>
      And the corresponding branch is here:<br>
      <a moz-do-not-send="true"
        href="http://cgit.freedesktop.org/%7Emareko/mesa/log/?h=vbuf-mgr">http://cgit.freedesktop.org/~mareko/mesa/log/?h=vbuf-mgr</a><br>
      <br>
      It's a module that drivers can use and it does 2 things:<br>
      - uploads user buffers<br>
      - takes care of converting unsupported vertex formats and
      unaligned vertex layouts to supported ones (there are vertex
      fetcher capability bits, see struct u_vbuf_caps)<br>
      <br>
      Besides some typos in a few commits, this work is already done.<br>
      <br>
      With this manager, the drivers don't have to deal with user
      buffers when they are bound as vertex buffers. They only get real
      hardware buffers. <br>
      <br>
    </blockquote>
    Please do *not* take away my user buffers and put user vertex arrays
    at the mercy of a state tracker !<br>
    In the DrawArrays case I usually use util/translate and interleave
    them letting it write directly into my command buffer for immediate
    mode vertex data submission.<br>
    <br>
    Thanks.<br>
    <blockquote
      cite="mid:AANLkTi=OWdCo2_Ow7Vnsteo97OAzYh1TaeP_hz3OVcYw@mail.gmail.com"
      type="cite">
      --<br>
      So this all is my current plan to simplify hardware drivers a bit
      and add some nice optimizations. Another option would be to move
      the new vertex buffer manager or something equivalent to the state
      tracker and remove user buffers from the Gallium interface, but
      that would be additional work with uncertain performance
      implications, so I decided not to take this path (for now).<br>
      <br>
      Best regards<br>
      Marek<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mesa-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>