From: Axel Davy Date: Fri, 11 Mar 2016 21:22:10 +0000 (+0100) Subject: st/nine: Fix buffer bind flags X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7639033973c4f0fece37457ac250dd9df73410e8;p=mesa.git st/nine: Fix buffer bind flags Signed-off-by: Axel Davy --- diff --git a/src/gallium/state_trackers/nine/buffer9.c b/src/gallium/state_trackers/nine/buffer9.c index ed0c4f1fa7f..5e8d22e9fc4 100644 --- a/src/gallium/state_trackers/nine/buffer9.c +++ b/src/gallium/state_trackers/nine/buffer9.c @@ -65,9 +65,9 @@ NineBuffer9_ctor( struct NineBuffer9 *This, info->width0 = Size; info->flags = 0; - info->bind = PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_TRANSFER_WRITE; - if (!(Usage & D3DUSAGE_WRITEONLY)) - info->bind |= PIPE_BIND_TRANSFER_READ; + /* Note: WRITEONLY is just tip for resource placement, the resource + * can still be read (but slower). */ + info->bind = PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_TRANSFER_WRITE | PIPE_BIND_TRANSFER_READ; info->usage = PIPE_USAGE_DEFAULT; if (Usage & D3DUSAGE_DYNAMIC)