From 7639033973c4f0fece37457ac250dd9df73410e8 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Fri, 11 Mar 2016 22:22:10 +0100 Subject: st/nine: Fix buffer bind flags Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/buffer9.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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) -- cgit v1.2.3