diff options
author | Kristian Høgsberg Kristensen <[email protected]> | 2016-01-26 14:41:06 -0800 |
---|---|---|
committer | Kristian Høgsberg Kristensen <[email protected]> | 2016-01-26 14:44:02 -0800 |
commit | 725d969753661735c82fdf7ff01662fd44616033 (patch) | |
tree | 027eeef5de677441a4167f18bd3db037c4195d08 | |
parent | df5f6d824bb566ba19854af7a1134c2fb95edf17 (diff) |
anv: Reemit STATE_BASE_ADDRESS after second level cmd buffers
Otherwise the primary batch will continue using the state base addresses
set by the secondary. Fixes remaining renderpass tests.
-rw-r--r-- | src/vulkan/anv_batch_chain.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/anv_batch_chain.c b/src/vulkan/anv_batch_chain.c index ee6e39d3a75..e9bd67c9442 100644 --- a/src/vulkan/anv_batch_chain.c +++ b/src/vulkan/anv_batch_chain.c @@ -721,6 +721,7 @@ anv_cmd_buffer_add_secondary(struct anv_cmd_buffer *primary, switch (secondary->exec_mode) { case ANV_CMD_BUFFER_EXEC_MODE_EMIT: anv_batch_emit_batch(&primary->batch, &secondary->batch); + anv_cmd_buffer_emit_state_base_address(primary); break; case ANV_CMD_BUFFER_EXEC_MODE_CHAIN: { struct anv_batch_bo *first_bbo = @@ -761,6 +762,7 @@ anv_cmd_buffer_add_secondary(struct anv_cmd_buffer *primary, } } + anv_cmd_buffer_emit_state_base_address(primary); break; } case ANV_CMD_BUFFER_EXEC_MODE_COPY_AND_CHAIN: { |