[Mesa-stable] [PATCH 1/2] anv/entrypoints: Use the function pointer types provided by vulkan.h

Jason Ekstrand jason at jlekstrand.net
Fri Jun 10 19:57:20 UTC 2016


This is a bit cleaner than generating the types ourselves when making the
table.

Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
Cc: "12.0" <mesa-stable at lists.freedesktop.org>
---
 src/intel/vulkan/anv_entrypoints_gen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py
index 546829f..46bc553 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"
-- 
2.5.0.400.gff86faf



More information about the mesa-stable mailing list