radv: Return NULL for entrypoints when not supported.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 11 Feb 2018 13:38:42 +0000 (14:38 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 22 Feb 2018 23:39:02 +0000 (00:39 +0100)
commite72ad05c1d6bdedf3b15cfe7ba42c801254d6112
treef38b69296fb1f70aa666092c44e4a6ed1d636eeb
parent414f5e0e14e5f2e90b688344660751803935c6f2
radv: Return NULL for entrypoints when not supported.

This implements strict checking for the entrypoint ProcAddr
functions.

 - InstanceProcAddr with instance = NULL, only returns the 3 allowed
   entrypoints.
 - DeviceProcAddr does not return any instance entrypoints.
 - InstanceProcAddr does not return non-supported or disabled
   instance entrypoints.
 - DeviceProcAddr does not return non-supported or disabled device
   entrypoints.
 - InstanceProcAddr still returns non-supported device entrypoints.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_entrypoints_gen.py
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_wsi.c