summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-03-11 22:22:10 +0100
committerAxel Davy <[email protected]>2016-05-18 23:37:14 +0200
commit7639033973c4f0fece37457ac250dd9df73410e8 (patch)
tree90b1106fa088cf3cf62a3235f1ad6241c7962921 /src/gallium/state_trackers
parent0f6e31823de2656c9319b5c1b6cd3c10fc76d9e9 (diff)
st/nine: Fix buffer bind flags
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/nine/buffer9.c6
1 files changed, 3 insertions, 3 deletions
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)