anv: Only advertise enabled entrypoints
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Jan 2018 02:08:09 +0000 (18:08 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 23 Jan 2018 08:15:40 +0000 (00:15 -0800)
commit1f79d986afa5a92d7c7d85882714c7feeddc5d14
tree013cbf83e968096832e9b06047679a7f5370a18e
parente3d27542aec33c7e0c2048a46a8a3cf71f09e907
anv: Only advertise enabled entrypoints

The Vulkan spec annoyingly requires us to track what core version and
what all extensions are enabled and only advertise those entrypoints.
Any call to vkGet*ProcAddr for an entrypoint for an extension the client
has not explicitly enabled is supposed to return NULL.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_entrypoints_gen.py
src/intel/vulkan/anv_private.h