anv: Re-arrange push constant data a bit
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 6 Nov 2019 16:59:15 +0000 (10:59 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Mon, 18 Nov 2019 18:35:14 +0000 (18:35 +0000)
commitca91ab801522c7a760562fe32d0a2a4b7b333876
treeb64947d29fa5cdc2b6d64eef796c42464e461785
parentd1c4e64a69e49c64148529024ecb700d18d3c1c8
anv: Re-arrange push constant data a bit

This moves the compute stuff into a anv_push_constants::cs sub-struct.
It also moves dynamic offsets into the push constants.  This means we
have to duplicate the data per-stage but that doesn't seem like the end
of the world and one day we may wish to make dynamic offsets per-stage
anyway.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_cmd_buffer.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c