diff options
author | Samuel Pitoiset <[email protected]> | 2016-04-03 19:08:20 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2016-04-26 19:47:49 +0200 |
commit | 1fb3cd24893a03a65995aca9fd741904c166eb8d (patch) | |
tree | 991c6e523b8312caa3e9dc35e5b126ca171640c4 /src/gallium/drivers/nouveau/nvc0 | |
parent | 9bc18a48f3b5f311fd46946cac1efefac0de1f46 (diff) |
nvc0: add missing glMemoryBarrier bits
This fixes a bunch of subtests of
arb_shader_image_load_store-host-mem-barrier.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]> (v1)
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_context.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c b/src/gallium/drivers/nouveau/nvc0/nvc0_context.c index 9e8fd6bbb8d..49c4fbe350f 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_context.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_context.c @@ -91,7 +91,14 @@ nvc0_memory_barrier(struct pipe_context *pipe, unsigned flags) } } } - if (flags & PIPE_BARRIER_SHADER_BUFFER) { + + if (flags & (PIPE_BARRIER_SHADER_BUFFER | + PIPE_BARRIER_CONSTANT_BUFFER | + PIPE_BARRIER_INDEX_BUFFER | + PIPE_BARRIER_IMAGE | + PIPE_BARRIER_TEXTURE | + PIPE_BARRIER_VERTEX_BUFFER | + PIPE_BARRIER_STREAMOUT_BUFFER)) { IMMED_NVC0(push, NVC0_3D(MEM_BARRIER), 0x1011); } } |