diff options
author | Jason Ekstrand <[email protected]> | 2016-05-20 11:49:12 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-27 15:18:09 -0700 |
commit | 3a83c176eab8c513eb723554a240af1a7308d701 (patch) | |
tree | c24fac04d0ddcc91436f38423c2509401c54804a /src/intel/vulkan/anv_cmd_buffer.c | |
parent | 7120c75ec3046b48610f7423dff2b67e60f34be5 (diff) |
anv/cmd_buffer: Only emit PIPE_CONTROL on-demand
This is in contrast to emitting it directly in vkCmdPipelineBarrier. This
has a couple of advantages. First, it means that no matter how many
vkCmdPipelineBarrier calls the application strings together it gets one or
two PIPE_CONTROLs. Second, it allow us to better track when we need to do
stalls because we can flag when a flush has happened and we need a stall.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_cmd_buffer.c')
-rw-r--r-- | src/intel/vulkan/anv_cmd_buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_buffer.c index db7793ee462..25ab9532ae1 100644 --- a/src/intel/vulkan/anv_cmd_buffer.c +++ b/src/intel/vulkan/anv_cmd_buffer.c @@ -127,6 +127,7 @@ anv_cmd_state_reset(struct anv_cmd_buffer *cmd_buffer) state->dirty = 0; state->vb_dirty = 0; + state->pending_pipe_bits = 0; state->descriptors_dirty = 0; state->push_constants_dirty = 0; state->pipeline = NULL; |