vk/headers: Update to new generated gen headers
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 28 Jul 2015 23:32:52 +0000 (16:32 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Wed, 29 Jul 2015 18:02:33 +0000 (11:02 -0700)
commitfcea3e2d23b7a02f9cc4b58870ac59107bcf0050
tree402ffe1b23c110aaa0b966230b9afb5f54740304
parent65f3d00cd6abb3ac1dec10808fbd1be693a3aaa3
vk/headers: Update to new generated gen headers

This update fixes cases where a 48-bit address field was split into
two parts:

    __gen_address_type                           MemoryAddress;
    uint32_t                                     MemoryAddressHigh;

which cases this pack code to be generated:

   dw[1] =
       __gen_combine_address(data, &dw[1], values->MemoryAddress, dw1);

   dw[2] =
      __gen_field(values->MemoryAddressHigh, 0, 15) |
      0;

which breaks for addresses above 4G.

This update also fixes arrays of structs in commands and structs, for
example, we now have:

   struct GEN8_BLEND_STATE_ENTRY                Entry[8];

and the pack functions now write all dwords in the packet, making
valgrind happy.

Finally, we would try to pack 64 bits of blend state into a uint32_t -
that's also fixed now.
src/vulkan/anv_pipeline.c
src/vulkan/gen75_pack.h
src/vulkan/gen7_pack.h
src/vulkan/gen8_pack.h