anv: fix vkUpdateDescriptorSets with inline uniform blocks
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 18 Oct 2019 11:50:02 +0000 (14:50 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 19 Oct 2019 10:16:40 +0000 (13:16 +0300)
commit3f8f52b241e3f8bf31344f52c2c8faa32b05e804
treece4d17d64f4d10789bd933a20c464907cd27c84b
parent1cea76274e6dd4ed671a66d73b5d1eb3ea376b5a
anv: fix vkUpdateDescriptorSets with inline uniform blocks

With inline uniform blocks descriptor, the meaning of descriptorCount
is a number of bytes to copy into the descriptor. Don't try to use
that size as an index into the descriptor table.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 43f40dc7cb ("anv: Implement VK_EXT_inline_uniform_block")
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/1195
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_descriptor_set.c