anv/entrypoints: Use the function pointer types provided by vulkan.h
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 10 Jun 2016 19:30:05 +0000 (12:30 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 10 Jun 2016 20:21:07 +0000 (13:21 -0700)
This is a bit cleaner than generating the types ourselves when making the
table.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Emil Velikov <emil.velikov@collabora.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_entrypoints_gen.py

index 546829f7f71eadd8a2b16adf6fb2f5bf45a5d918..46bc5533bcc79739de9facf9bcdee90c4b50bb02 100644 (file)
@@ -113,7 +113,7 @@ if opt_header:
 
     for type, name, args, num, h in entrypoints:
         print_guard_start(name)
-        print "         %s (*%s)%s;" % (type, name, args)
+        print "         PFN_vk{0} {0};".format(name)
         print_guard_end(name)
     print "      };\n"
     print "   };\n"