From: Kristian Høgsberg Kristensen Date: Tue, 26 Jan 2016 22:41:06 +0000 (-0800) Subject: anv: Reemit STATE_BASE_ADDRESS after second level cmd buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=725d969753661735c82fdf7ff01662fd44616033;p=mesa.git 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. --- 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: {