gallium: add global buffer memory barrier bit
Currently radeonsi synchronizes after every dispatch and Clover does nothing to synchronize. This is overzealous, especially with GL compute, so add a barrier for global buffers. Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
01f993a21f
commit
be5899dcf9
|
@ -368,6 +368,7 @@ enum pipe_flush_flags
|
|||
#define PIPE_BARRIER_IMAGE (1 << 8)
|
||||
#define PIPE_BARRIER_FRAMEBUFFER (1 << 9)
|
||||
#define PIPE_BARRIER_STREAMOUT_BUFFER (1 << 10)
|
||||
#define PIPE_BARRIER_GLOBAL_BUFFER (1 << 11)
|
||||
|
||||
/**
|
||||
* Resource binding flags -- state tracker must specify in advance all
|
||||
|
|
|
@ -89,6 +89,8 @@ kernel::launch(command_queue &q,
|
|||
exec.sviews.size(), NULL);
|
||||
q.pipe->bind_sampler_states(q.pipe, PIPE_SHADER_COMPUTE, 0,
|
||||
exec.samplers.size(), NULL);
|
||||
|
||||
q.pipe->memory_barrier(q.pipe, PIPE_BARRIER_GLOBAL_BUFFER);
|
||||
exec.unbind();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue