<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 16/05/2016 07:25, Ilia Mirkin wrote:<br>
    </div>
    <blockquote
cite="mid:CAKb7UvgXrK6x12c5_myXjuDKXGZa2ss_DgAH7ssN=czRz4FXfg@mail.gmail.com"
      type="cite">
      <p dir="ltr"><br>
        On May 15, 2016 6:46 AM, "Axel Davy" <<a
          moz-do-not-send="true" href="mailto:axel.davy@ens.fr"><a class="moz-txt-link-abbreviated" href="mailto:axel.davy@ens.fr">axel.davy@ens.fr</a></a>>
        wrote:<br>
        ><br>
        > Signed-off-by: Axel Davy <<a moz-do-not-send="true"
          href="mailto:axel.davy@ens.fr">axel.davy@ens.fr</a>><br>
        > ---<br>
        >  src/gallium/state_trackers/nine/buffer9.c | 6 +++---<br>
        >  1 file changed, 3 insertions(+), 3 deletions(-)<br>
        ><br>
        > diff --git a/src/gallium/state_trackers/nine/buffer9.c
        b/src/gallium/state_trackers/nine/buffer9.c<br>
        > index ed0c4f1..f6bad6a 100644<br>
        > --- a/src/gallium/state_trackers/nine/buffer9.c<br>
        > +++ b/src/gallium/state_trackers/nine/buffer9.c<br>
        > @@ -65,9 +65,9 @@ NineBuffer9_ctor( struct NineBuffer9
        *This,<br>
        >      info->width0 = Size;<br>
        >      info->flags = 0;<br>
        ><br>
        > -    info->bind = PIPE_BIND_VERTEX_BUFFER |
        PIPE_BIND_TRANSFER_WRITE;<br>
        > -    if (!(Usage & D3DUSAGE_WRITEONLY))<br>
        > -        info->bind |= PIPE_BIND_TRANSFER_READ;<br>
        > +    /* Note: WRITEONLY is just tip for resource placement,
        the resource<br>
        > +     * can still be read (but slower). */<br>
        > +    info->bind = PIPE_BIND_VERTEX_BUFFER |
        PIPE_BIND_TRANSFER_READ | PIPE_BIND_TRANSFER_READ;</p>
      <p dir="ltr">I assume that one of those should have been WRITE?</p>
    </blockquote>
    Yep, good catch<br>
    <blockquote
cite="mid:CAKb7UvgXrK6x12c5_myXjuDKXGZa2ss_DgAH7ssN=czRz4FXfg@mail.gmail.com"
      type="cite">
      <p dir="ltr">Separately, I don't think transfer flags do anything
        at resource creation time. Only at transfer map time...</p>
    </blockquote>
    Indeed, I think for now the transfer bind flags aren't used
    particularly by drivers, however the bind transfer flags do exist
    (and are different than the map transfer flags), and I think we can
    say it is incorrect not to specify them in our case.<br>
    <br>
    Axel<br>
    <blockquote
cite="mid:CAKb7UvgXrK6x12c5_myXjuDKXGZa2ss_DgAH7ssN=czRz4FXfg@mail.gmail.com"
      type="cite">
      <p dir="ltr">Resource placement is determined by the usage.</p>
      <p dir="ltr">><br>
        >      info->usage = PIPE_USAGE_DEFAULT;<br>
        >      if (Usage & D3DUSAGE_DYNAMIC)<br>
        > --<br>
        > 2.8.2<br>
        ><br>
        > _______________________________________________<br>
        > mesa-dev mailing list<br>
        > <a moz-do-not-send="true"
          href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
        > <a moz-do-not-send="true"
          href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
      </p>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>