OSDN Git Service

anv: Add a #define for the max binding table size
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 16 Apr 2019 22:35:05 +0000 (17:35 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 19 Apr 2019 19:56:42 +0000 (19:56 +0000)
commita5a0dc08f18928a080e3393ebc694bc7053216fb
treeb3e74a891230ede9486d391c2c422c37290218ce
parent3b755b52e80acc7705775ccaf5f31cf213edb207
anv: Add a #define for the max binding table size

This also fixes a bug where we mis-calculate maximum binding table sizes
and may return true in vkGetDescriptorSetLayoutSupport even for sets too
large to fit in a binding table.

Fixes: ddc40691221 "anv: Implement VK_KHR_maintenance3"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/vulkan/anv_descriptor_set.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h