# For Android, we must not export anything other than loader-related API
{
global:
	vkGetInstanceProcAddr;

	# Loader-ICD interface functions
	vk_icdGetInstanceProcAddr;
	vk_icdNegotiateLoaderICDInterfaceVersion;

	# Android HAL module info object
	HMI;

local:
	*;
};


# For Android, we must not export anything other than loader-related API
{
global:
	# Loader-ICD interface functions
	vk_icdGetInstanceProcAddr;
	vk_icdNegotiateLoaderICDInterfaceVersion;

	# Android HAL module info object
	HMI;

local:
	*;
};


Remove vkGetInstanceProcAddr from exported symbols on Android

Android only allows access to the ICD's functions, through the Vulkan
Loader interface functions.

This was causing direct access to vkGetPhysicalDeviceSurfaceFormatsKHR,
while Android's libvulkan must override it to provide an implementation
based on AHardwareBuffer, which affects things like wide-gamut support.

Bug: b/182576189
Bug: b/148822450
Change-Id: I64fd5a601f92beca186696d2cd09eee1a09b8ce9
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53608
Reviewed-by: Jason Macnak <76caa58940b8c6785e996f522e85b625ac7c7baa@google.com>
Reviewed-by: Chris Forbes <c3279c50043e18e9442c1ae071cafa0e7a4ca967@google.com>
Tested-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
