diff options
author | Jason Ekstrand <[email protected]> | 2015-09-24 14:20:07 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-24 14:45:58 -0700 |
commit | 00d18a661f7685fd3742337674deca372ad7cbc4 (patch) | |
tree | fa7630d27107ac508ae12e47a6585c590d1a8778 /src/vulkan/anv_entrypoints_gen.py | |
parent | f5e72695e0e75aa787d42646962228b04965d2d9 (diff) |
anv/entrypoints: Expose the anv_resolve_entrypoint function
Diffstat (limited to 'src/vulkan/anv_entrypoints_gen.py')
-rw-r--r-- | src/vulkan/anv_entrypoints_gen.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vulkan/anv_entrypoints_gen.py b/src/vulkan/anv_entrypoints_gen.py index 50c98456846..0fa677bbe02 100644 --- a/src/vulkan/anv_entrypoints_gen.py +++ b/src/vulkan/anv_entrypoints_gen.py @@ -201,8 +201,8 @@ anv_set_dispatch_gen(uint32_t gen) dispatch_gen = gen; } -static void * __attribute__ ((noinline)) -resolve_entrypoint(uint32_t index) +void * __attribute__ ((noinline)) +anv_resolve_entrypoint(uint32_t index) { if (enable_validate && validate_layer.entrypoints[index]) return validate_layer.entrypoints[index]; @@ -229,7 +229,7 @@ resolve_entrypoint(uint32_t index) # lets the resolver look it up in the table. for type, name, args, num, h in entrypoints: - print "static void *resolve_%s(void) { return resolve_entrypoint(%d); }" % (name, num) + print "static void *resolve_%s(void) { return anv_resolve_entrypoint(%d); }" % (name, num) print "%s vk%s%s\n __attribute__ ((ifunc (\"resolve_%s\"), visibility (\"default\")));\n" % (type, name, args, name) @@ -305,6 +305,6 @@ anv_lookup_entrypoint(const char *name) if (strcmp(name, strings + e->name) != 0) return NULL; - return resolve_entrypoint(i); + return anv_resolve_entrypoint(i); } """ % (prime_factor, prime_step, hash_mask) |