vk: Make batch chain code gen-agnostic
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 19 Aug 2015 21:33:22 +0000 (14:33 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 24 Aug 2015 20:45:40 +0000 (13:45 -0700)
commite43fc871be2d60bd182c9c83372c61ff43d19ab1
tree3d2989ed21fc7be63a55fad0ed06d036215a85e9
parent25ab43ee8cde04914eb19ed060cedf98c94287a3
vk: Make batch chain code gen-agnostic

Since the extra dword in MI_BATCH_BUFFER_START added in gen8 is at the
end of the struct, we can emit the gen8 packet on all gens as long as we
set the instruction length correctly.

Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
src/vulkan/anv_batch_chain.c