<p dir="ltr"><br>
On May 15, 2016 6:46 AM, "Axel Davy" <<a href="mailto:axel.davy@ens.fr">axel.davy@ens.fr</a>> wrote:<br>
><br>
> Signed-off-by: Axel Davy <<a 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>
<p dir="ltr">Separately, I don't think transfer flags do anything at resource creation time. Only at transfer map time...</p>
<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 href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</p>