mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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 <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> (v1)
This commit is contained in:
parent
9bc18a48f3
commit
1fb3cd2489
1 changed files with 8 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue