vk: Handle uninitialized FS inputs and gl_PrimitiveID
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 9 Jan 2016 09:03:20 +0000 (01:03 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Sat, 9 Jan 2016 09:03:20 +0000 (01:03 -0800)
commita9c0e8f00f2ac7543e69d7e4ec3f55fc4af79872
tree679273e359ff2354914ff7e3989f6c0a13409fe6
parentb538ec5409c88f9fc08e0dbbaf3ae71346a1e398
vk: Handle uninitialized FS inputs and gl_PrimitiveID

These show up as varying_to_slot[attr] == -1. Instead of storing -1 - 2
in swiz.Attribute[input_index].SourceAttribute, handle it correctly.
src/vulkan/gen8_pipeline.c