[Mesa-dev] [PATCH 3/4] radv: make radv_resolve_entrypoint static

Emil Velikov emil.l.velikov at gmail.com
Sun Feb 19 11:49:21 UTC 2017


Used only within the generated source file.

Fixes: 12301c54186 ("radv: drop the RADV_CALL macro.")
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/amd/vulkan/radv_entrypoints_gen.py | 2 +-
 src/amd/vulkan/radv_private.h          | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/amd/vulkan/radv_entrypoints_gen.py b/src/amd/vulkan/radv_entrypoints_gen.py
index adab91a380..5c3bd6f7bf 100644
--- a/src/amd/vulkan/radv_entrypoints_gen.py
+++ b/src/amd/vulkan/radv_entrypoints_gen.py
@@ -203,7 +203,7 @@ for layer in [ "radv" ]:
 
 print """
 
-void * __attribute__ ((noinline))
+static void * __attribute__ ((noinline))
 radv_resolve_entrypoint(uint32_t index)
 {
    return radv_layer.entrypoints[index];
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index 1d8ff287b3..920d411c6b 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -259,7 +259,6 @@ void radv_loge_v(const char *format, va_list va);
 		return;					\
 	} while (0)
 
-void *radv_resolve_entrypoint(uint32_t index);
 void *radv_lookup_entrypoint(const char *name);
 
 struct radv_extensions {
-- 
2.11.0



More information about the mesa-dev mailing list