Mesa (master): Revert "anv: Stop generating weak references for instance entrypoints"

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 18 20:36:44 UTC 2018


Module: Mesa
Branch: master
Commit: 8c0b9fdfa1db596dfce101b9bf5373623a076031
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c0b9fdfa1db596dfce101b9bf5373623a076031

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Sun Oct 14 21:56:47 2018 -0500

Revert "anv: Stop generating weak references for instance entrypoints"

This reverts commit 00bb42105d6edf6e432c0e3712ffb9d3eb0aece4.  It was
not as well thought out as I had intended and broke the build when
VK_KHR_display is disabled in the build.

---

 src/intel/vulkan/anv_entrypoints_gen.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py
index 25a532fd70..beb658b866 100644
--- a/src/intel/vulkan/anv_entrypoints_gen.py
+++ b/src/intel/vulkan/anv_entrypoints_gen.py
@@ -227,6 +227,19 @@ ${strmap(device_strmap, 'device')}
  * either pick the correct entry point.
  */
 
+% for e in instance_entrypoints:
+  % if e.alias:
+    <% continue %>
+  % endif
+  % if e.guard is not None:
+#ifdef ${e.guard}
+  % endif
+  ${e.return_type} ${e.prefixed_name('anv')}(${e.decl_params()}) __attribute__ ((weak));
+  % if e.guard is not None:
+#endif // ${e.guard}
+  % endif
+% endfor
+
 const struct anv_instance_dispatch_table anv_instance_dispatch_table = {
 % for e in instance_entrypoints:
   % if e.guard is not None:




More information about the mesa-commit mailing list