From ec6c50539be6311693ec67cd69baa84f56654c78 Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Thu, 17 Oct 2019 15:53:00 -0700 Subject: Vulkan: correctly expose Vulkan entry points This change fixes the advertisement of core Vulkan entry points as below: 1. GIPA returns a valid checked_proc for 1.1 core device APIs. 2. GDPA returns NULL for 1.1 core device APIs on a 1.0 physical device. Bug: 134185757 Bug: 142266108 Test: dEQP-VK.memory.binding on 1.1 loader and 1.0 device ICD Test: dEQP-VK.api.info.instance on 1.1 loader and 1.0 instance ICD Change-Id: Ieb814516a4019f1a330178bfeb414e1450895c5c Merged-In: I0a3e06dc04bade4f36a7e68ee2f53979c656ee4e --- vulkan/libvulkan/api.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vulkan/libvulkan/api.cpp') diff --git a/vulkan/libvulkan/api.cpp b/vulkan/libvulkan/api.cpp index 71048db920..3d56656896 100644 --- a/vulkan/libvulkan/api.cpp +++ b/vulkan/libvulkan/api.cpp @@ -519,7 +519,11 @@ LayerChain::LayerChain(bool is_instance, get_device_proc_addr_(nullptr), driver_extensions_(nullptr), driver_extension_count_(0) { - enabled_extensions_.set(driver::ProcHook::EXTENSION_CORE); + // advertise the loader supported core Vulkan API version at vulkan::api + for (uint32_t i = driver::ProcHook::EXTENSION_CORE_1_0; + i != driver::ProcHook::EXTENSION_COUNT; ++i) { + enabled_extensions_.set(i); + } } LayerChain::~LayerChain() { -- cgit v1.2.3-59-g8ed1b