vk: Store dynamic slot index with struct anv_descriptor_slot
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Fri, 29 May 2015 18:32:53 +0000 (11:32 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Fri, 29 May 2015 18:32:53 +0000 (11:32 -0700)
commit4aecec0bd6475057bb8a8e234c1dce115a08b24c
treea5fd75ce1012907c3a6421350b8cdcd91c67be17
parentfad418ff47894a1d579b28346d605d1d57de9b74
vk: Store dynamic slot index with struct anv_descriptor_slot

We need to make sure we use the right index into dynamic offset
array. Dynamic descriptors can be present or not in different stages and
to get the right offset, we need to compute the index at
vkCreateDescriptorSetLayout time.
src/vulkan/device.c
src/vulkan/private.h