From ff0f00213f973bb000aadd671898b0f9d356d4df Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Mon, 8 Feb 2016 11:16:21 -0700 Subject: layers: MR221: Correct name for unique_objects layer --- vk-layer-generate.py | 28 ++++++++++++++++++++-------- vulkan.py | 5 +---- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/vk-layer-generate.py b/vk-layer-generate.py index 8f44ee1a..d03029d3 100755 --- a/vk-layer-generate.py +++ b/vk-layer-generate.py @@ -384,10 +384,16 @@ class Subcommand(object): ggep_body.append('%s' % self.lineinfo.get()) ggep_body.append('static const VkLayerProperties globalLayerProps[] = {') ggep_body.append(' {') - ggep_body.append(' "VK_LAYER_LUNARG_%s",' % layer_name) - ggep_body.append(' VK_API_VERSION, // specVersion') - ggep_body.append(' 1, // implementationVersion') - ggep_body.append(' "LunarG Validation Layer"') + if self.layer_name in ['threading', 'unique_objects']: + ggep_body.append(' "VK_LAYER_GOOGLE_%s",' % layer) + ggep_body.append(' VK_API_VERSION, // specVersion') + ggep_body.append(' 1, // implementationVersion') + ggep_body.append(' "Google Validation Layer"') + else: + ggep_body.append(' "VK_LAYER_LUNARG_%s",' % layer) + ggep_body.append(' VK_API_VERSION, // specVersion') + ggep_body.append(' 1, // implementationVersion') + ggep_body.append(' "LunarG Validation Layer"') ggep_body.append(' }') ggep_body.append('};') ggep_body.append('') @@ -404,10 +410,16 @@ class Subcommand(object): gpdlp_body.append('%s' % self.lineinfo.get()) gpdlp_body.append('static const VkLayerProperties deviceLayerProps[] = {') gpdlp_body.append(' {') - gpdlp_body.append(' "VK_LAYER_LUNARG_%s",' % layer) - gpdlp_body.append(' VK_API_VERSION,') - gpdlp_body.append(' 1,') - gpdlp_body.append(' "LunarG Validation Layer"') + if self.layer_name in ['threading', 'unique_objects']: + gpdlp_body.append(' "VK_LAYER_GOOGLE_%s",' % layer) + gpdlp_body.append(' VK_API_VERSION, // specVersion') + gpdlp_body.append(' 1, // implementationVersion') + gpdlp_body.append(' "Google Validation Layer"') + else: + gpdlp_body.append(' "VK_LAYER_LUNARG_%s",' % layer) + gpdlp_body.append(' VK_API_VERSION, // specVersion') + gpdlp_body.append(' 1, // implementationVersion') + gpdlp_body.append(' "LunarG Validation Layer"') gpdlp_body.append(' }') gpdlp_body.append('};') gpdlp_body.append('VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceLayerProperties(VkPhysicalDevice physicalDevice, uint32_t *pCount, VkLayerProperties* pProperties)') diff --git a/vulkan.py b/vulkan.py index 77fdffb2..189be419 100755 --- a/vulkan.py +++ b/vulkan.py @@ -1203,10 +1203,7 @@ import sys if sys.platform.startswith('win32'): extensions = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_win32_surface] extensions_all = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_win32_surface, lunarg_debug_report, lunarg_debug_marker] -elif sys.platform.startswith('linux'): - extensions = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_xcb_surface] - extensions_all = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_xcb_surface, lunarg_debug_report, lunarg_debug_marker] -else: # android +else: # linux & android extensions = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_xcb_surface, ext_khr_android_surface] extensions_all = [core, ext_khr_surface, ext_khr_device_swapchain, ext_khr_xcb_surface, ext_khr_android_surface, lunarg_debug_report, lunarg_debug_marker] -- cgit v1.2.3