nvc0: add missing glMemoryBarrier bits
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 3 Apr 2016 17:08:20 +0000 (19:08 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 26 Apr 2016 17:47:49 +0000 (19:47 +0200)
This fixes a bunch of subtests of
arb_shader_image_load_store-host-mem-barrier.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> (v1)
src/gallium/drivers/nouveau/nvc0/nvc0_context.c

index 9e8fd6bbb8db6a5b665acd3c1c1c7f9dac7303da..49c4fbe350fe10861a5bec71055e752842e68dcd 100644 (file)
@@ -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);
    }
 }