anv: Move push constant allocation to the command buffer
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 9 Mar 2016 02:10:22 +0000 (18:10 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 27 May 2016 22:17:43 +0000 (15:17 -0700)
commit54324877926caa28b8ebd89d95b4e7c2447d17b8
tree663cbfa6f9c3ee2ae7ff1c8939489352245febd0
parent2cee0d0f9c9e9e269885b1d943ff123e033d9b52
anv: Move push constant allocation to the command buffer

Instead of blasting it out as part of the pipeline, we put it in the
command buffer and only blast it out when it's really needed.  Since the
PUSH_CONSTANT_ALLOC commands aren't pipelined, they immediately cause a
stall which we would like to avoid.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/anv_cmd_buffer.c
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c
src/intel/vulkan/genX_pipeline_util.h