anv: Make sure state on primary is correct after CmdExecuteCommands
authorAlex Smith <asmith@feralinteractive.com>
Tue, 9 Jan 2018 16:49:02 +0000 (08:49 -0800)
committerAlex Smith <asmith@feralinteractive.com>
Thu, 11 Jan 2018 18:11:08 +0000 (18:11 +0000)
commit4fd85617c176e9222f84fda7634a74d060e982b1
tree7d5b6bd50003a5c2d5ba8e899839c2258f3e78ca
parentbb951d45f23f29310b8f2edc395a8b774f9e1ab9
anv: Make sure state on primary is correct after CmdExecuteCommands

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

Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: mesa-stable@lists.freedesktop.org
src/intel/vulkan/genX_cmd_buffer.c