libvulkan: Filter layer and extension lists passed to drivers
This change removes the layer and extension lists requested by the app
before passing the instance/device create info to the driver. For
device creation, it adds the VK_ANDROID_native_buffer extension. There
are several new TODOs describing the work left to do here: mostly,
when we properly enumerate instance and device extensions supported by
the driver, we need to use those same lists to filter the extensions
requested by the app.
Change-Id: I27c528d7bbbcb281d1bf6afec2318394831154a0
(cherry picked from commit 258cdce2c0e28b13c887c3d0ad5734a007393368)
diff --git a/vulkan/libvulkan/layers_extensions.cpp b/vulkan/libvulkan/layers_extensions.cpp
index e56cdea..3668df6 100644
--- a/vulkan/libvulkan/layers_extensions.cpp
+++ b/vulkan/libvulkan/layers_extensions.cpp
@@ -159,7 +159,7 @@
struct dirent* entry;
while ((entry = readdir(directory))) {
size_t libname_len = strlen(entry->d_name);
- if (strncmp(entry->d_name, "libVKLayer", 10) != 0 ||
+ if (strncmp(entry->d_name, "libVkLayer", 10) != 0 ||
strncmp(entry->d_name + libname_len - 3, ".so", 3) != 0)
continue;
path.append(entry->d_name);