anv,radv: Drop XML workarounds for VK_ANDROID_native_buffer
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 16 Apr 2018 14:38:31 +0000 (07:38 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 16 Apr 2018 14:59:25 +0000 (07:59 -0700)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_extensions.py
src/intel/vulkan/anv_extensions_gen.py

index db37d617f9ee4765d54e744d11de0ab6c4c960cb..099cae78b111fad5278b8d54176b598354394c9e 100644 (file)
@@ -161,12 +161,7 @@ def _init_exts_from_xml(xml):
             continue
 
         ext = ext_name_map[ext_name]
-        if ext_name == 'VK_ANDROID_native_buffer':
-            # VK_ANDROID_native_buffer is missing the type specifier.  Just
-            # hard-code it to be a device extension for now.
-            ext.type = 'device'
-        else:
-            ext.type = ext_elem.attrib['type']
+        ext.type = ext_elem.attrib['type']
 
 _TEMPLATE_H = Template(COPYRIGHT + """
 #ifndef RADV_EXTENSIONS_H
index 57a528563eda8336f3b9af63080506bc4892a5d7..5ea82204eea084d4caa987a0b2b747a7a745b194 100644 (file)
@@ -46,12 +46,7 @@ def _init_exts_from_xml(xml):
             continue
 
         ext = ext_name_map[ext_name]
-        if ext_name == 'VK_ANDROID_native_buffer':
-            # VK_ANDROID_native_buffer is missing the type specifier.  Just
-            # hard-code it to be a device extension for now.
-            ext.type = 'device'
-        else:
-            ext.type = ext_elem.attrib['type']
+        ext.type = ext_elem.attrib['type']
 
 _TEMPLATE_H = Template(COPYRIGHT + """