anv: fix descriptor limits on gen8
authorArcady Goldmints-Orlov <agoldmints@igalia.com>
Thu, 12 Sep 2019 19:20:22 +0000 (14:20 -0500)
committerArcady Goldmints-Orlov <agoldmints@igalia.com>
Thu, 19 Sep 2019 14:10:40 +0000 (09:10 -0500)
commit5ec5fecc26d1818157298c8507ba208f9f3501a1
tree80106eb0818d7adf70ea79b0ca3930549823e45c
parent8b78cce433b09fe78cde05d740075fb8832e44dc
anv: fix descriptor limits on gen8

Later generations support bindless for samplers, images, and buffers and
thus per-stage descriptors are not limited by the binding table size.
However, gen8 doesn't support bindless images and thus needs to report a
lower per-stage limit so that all combinations of descriptors that fit
within the advertised limits are reported as supported by
vkGetDescriptorSetLayoutSupport.

Fixes test dEQP-VK.api.maintenance3_check.descriptor_set
Fixes: 79fb0d27f3 ("anv: Implement SSBOs bindings with GPU addresses in the descriptor BO")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_descriptor_set.c
src/intel/vulkan/anv_device.c