anv/cmd_buffer: Move state base address re-emit into ExecuteCommands
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 17 Oct 2016 16:14:48 +0000 (09:14 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 18 Oct 2016 00:41:35 +0000 (17:41 -0700)
commitac0ca066de654fd80a6f18c9c32555d7d91c0335
tree1ce4135f1e16a71b9ca25460620e9d795b1096ba
parent1c05f92590d9ad9bb0635b93b3a917f8d571596c
anv/cmd_buffer: Move state base address re-emit into ExecuteCommands

This has two primary advantages.  First, it means that the batch_chain code
knows less about the actual command buffer contents which is good because
improves separation.  Second, it means that it only gets re-emitted once
after all of the secondaries instead of once after each secondary which is
just wasteful.  It also has the advantage of cleaning the code up a bit.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/anv_cmd_buffer.c