anv: Accurately advertise dynamic descriptor limits
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 4 Mar 2017 18:52:43 +0000 (10:52 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 13 Mar 2017 14:57:03 +0000 (07:57 -0700)
commit5e44ef4a76d9a3681fb6be605319250d4ab800ee
treefcdcdc041b2cc44259f1ccc40dd219b74d79eec9
parentd36b46381754607f954c2cb6ee3843a84d6ca991
anv: Accurately advertise dynamic descriptor limits

The number of dynamic descriptors is limited by both the number of
descriptors and the total number of dynamic things.  Because there isn't
a single "maximum dynamic things" limit, we need to divide by two so
that they can create the maximum of both UBOs and SSBOs.

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Cc: "17.0 13.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_device.c