After executing a secondary command buffer, we need to update certain state on the primary command buffer to reflect changes by the secondary. Otherwise subsequent commands may not have the correct state set.
This fixes various issues (rendering errors, GPU hangs) seen after executing secondary command buffers in some cases.
v2 (Jason Ekstrand):- Reset to invalid values instead of pulling from the secondary- Change the comment to be more descriptive
4fd85617c1 anv: Make sure state on primary is correct after CmdExecuteCommands
src/intel/vulkan/genX_cmd_buffer.c | 9 +++++++++
1 file changed, 9 insertions(+)