anv: Add better push constant support
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 30 Oct 2015 05:24:54 +0000 (22:24 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 30 Oct 2015 05:26:36 +0000 (22:26 -0700)
commit3883728730f293b763a5641560375b18d4f97782
treec4f5524a0eee4662ad0b7abb8dfd3a40c304fb3e
parent1f2624e6dd75860156a0385c3ccfb351a9206cec
anv: Add better push constant support

What we had before was kind of a hack where we made certain untrue
assumptions about the incoming data.  This new support, while it still
doesn't support indirects properly (that will come), at least pulls the
offsets and strides from SPIR-V like it's supposed to.
src/vulkan/Makefile.am
src/vulkan/anv_nir.h
src/vulkan/anv_nir_lower_push_constants.c [new file with mode: 0644]
src/vulkan/anv_pipeline.c