[Mesa-dev] [PATCH 2/2] radv: update ia_multi_vgt when executing secondary buffers

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Oct 16 12:15:55 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_cmd_buffer.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 2252d80e11..9d59028bfd 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -2679,6 +2679,11 @@ void radv_CmdExecuteCommands(
 			primary->state.last_primitive_reset_index =
 				secondary->state.last_primitive_reset_index;
 		}
+
+		if (secondary->state.last_ia_multi_vgt_param) {
+			primary->state.last_ia_multi_vgt_param =
+				secondary->state.last_ia_multi_vgt_param;
+		}
 	}
 
 	/* After executing commands from secondary buffers we have to dirty
-- 
2.14.2



More information about the mesa-dev mailing list