vk/pipeline: Fix crash when the pipeline has no attributes
authorChad Versace <chad.versace@intel.com>
Fri, 28 Aug 2015 15:07:15 +0000 (08:07 -0700)
committerChad Versace <chad.versace@intel.com>
Fri, 28 Aug 2015 15:07:15 +0000 (08:07 -0700)
commit84cfc08c1059f6190b0ada811003abe93c624e39
tree321ece005288fefcc8e16e628e97bf5cacb79ea1
parent053d32d2a5906057519e12ffd8bc946bee2f5c60
vk/pipeline: Fix crash when the pipeline has no attributes

If there are no attributes, don't emit 3DSTATE_VERTEX_ELEMENTS.
That packet does not allow 0 attributes.
src/vulkan/gen7_pipeline.c
src/vulkan/gen8_pipeline.c