From: Jason Ekstrand Date: Fri, 10 Jun 2016 19:30:05 +0000 (-0700) Subject: anv/entrypoints: Use the function pointer types provided by vulkan.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ed0d9dd06414b30d28d7d1301a980784e22d8d6;p=mesa.git anv/entrypoints: Use the function pointer types provided by vulkan.h This is a bit cleaner than generating the types ourselves when making the table. Signed-off-by: Jason Ekstrand Acked-by: Emil Velikov Cc: "12.0" --- diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py index 546829f7f71..46bc5533bcc 100644 --- a/src/intel/vulkan/anv_entrypoints_gen.py +++ b/src/intel/vulkan/anv_entrypoints_gen.py @@ -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"