From 725d969753661735c82fdf7ff01662fd44616033 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Tue, 26 Jan 2016 14:41:06 -0800 Subject: [PATCH] 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. --- src/vulkan/anv_batch_chain.c | 2 ++ 1 file changed, 2 insertions(+) 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: { -- 2.30.2