diff options
author | Jason Ekstrand <[email protected]> | 2016-03-08 18:10:22 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-05-27 15:17:43 -0700 |
commit | 54324877926caa28b8ebd89d95b4e7c2447d17b8 (patch) | |
tree | 663cbfa6f9c3ee2ae7ff1c8939489352245febd0 /src/intel/vulkan/anv_cmd_buffer.c | |
parent | 2cee0d0f9c9e9e269885b1d943ff123e033d9b52 (diff) |
anv: Move push constant allocation to the command buffer
Instead of blasting it out as part of the pipeline, we put it in the
command buffer and only blast it out when it's really needed. Since the
PUSH_CONSTANT_ALLOC commands aren't pipelined, they immediately cause a
stall which we would like to avoid.
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 bba24e82337..db7793ee462 100644 --- a/src/intel/vulkan/anv_cmd_buffer.c +++ b/src/intel/vulkan/anv_cmd_buffer.c @@ -130,6 +130,7 @@ anv_cmd_state_reset(struct anv_cmd_buffer *cmd_buffer) state->descriptors_dirty = 0; state->push_constants_dirty = 0; state->pipeline = NULL; + state->push_constant_stages = 0; state->restart_index = UINT32_MAX; state->dynamic = default_dynamic_state; state->need_query_wa = true; |