vulkan: do not expose surface/swapchain extensions on Android
authorTapani Pälli <tapani.palli@intel.com>
Mon, 5 Mar 2018 16:46:20 +0000 (18:46 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 6 Mar 2018 06:02:59 +0000 (08:02 +0200)
On Android surface/swapchain extensions are implemented by the loader. Patch
modifies both anv and radv extension scripts disabling currently exposed
ones. See also earlier commit 9f763c1f9b.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/amd/vulkan/radv_extensions.py
src/intel/vulkan/anv_extensions.py

index 92b1ea3e1426ba70bc59dac48d591a11566d3a82..6a323ea9b0beaafc1b20fd51bf3c452617fd2a09 100644 (file)
@@ -65,9 +65,9 @@ EXTENSIONS = [
     Extension('VK_KHR_external_semaphore_fd',             1, 'device->rad_info.has_syncobj'),
     Extension('VK_KHR_get_memory_requirements2',          1, True),
     Extension('VK_KHR_get_physical_device_properties2',   1, True),
-    Extension('VK_KHR_get_surface_capabilities2',         1, True),
+    Extension('VK_KHR_get_surface_capabilities2',         1, 'RADV_HAS_SURFACE'),
     Extension('VK_KHR_image_format_list',                 1, True),
-    Extension('VK_KHR_incremental_present',               1, True),
+    Extension('VK_KHR_incremental_present',               1, 'RADV_HAS_SURFACE'),
     Extension('VK_KHR_maintenance1',                      1, True),
     Extension('VK_KHR_maintenance2',                      1, True),
     Extension('VK_KHR_push_descriptor',                   1, True),
index fd0d3337d08cae89de9a3c9360b56bb5a1454a36..676efa434295cb75d0f97df27547fb4fc014d0c0 100644 (file)
@@ -68,7 +68,7 @@ EXTENSIONS = [
     Extension('VK_KHR_get_physical_device_properties2',   1, True),
     Extension('VK_KHR_get_surface_capabilities2',         1, 'ANV_HAS_SURFACE'),
     Extension('VK_KHR_image_format_list',                 1, True),
-    Extension('VK_KHR_incremental_present',               1, True),
+    Extension('VK_KHR_incremental_present',               1, 'ANV_HAS_SURFACE'),
     Extension('VK_KHR_maintenance1',                      1, True),
     Extension('VK_KHR_maintenance2',                      1, True),
     Extension('VK_KHR_push_descriptor',                   1, True),