anv/batch_chain: Call batch_bo_finish at the end of end_batch_buffer
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 31 May 2018 05:01:46 +0000 (22:01 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Jun 2018 21:27:11 +0000 (14:27 -0700)
commit4f20c665b4dc48bf11b00f9c520ec249f5eecb1f
treeb1fd532a4f69d6d255f02c08b36e5bcd874d05ec
parente7d0378bd958e56e25fe0f185d9403e766f0be32
anv/batch_chain: Call batch_bo_finish at the end of end_batch_buffer

The only reason we were calling it in the middle was that one of the
cases for figuring out the secondary command buffer execution type
wanted batch_bo->length which gets set by batch_bo_finish.  It's easy
enough to recalculate and now batch_bo_finish is called in a sensible
location.

Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
src/intel/vulkan/anv_batch_chain.c