Mesa (master): anv: Mark anv_dump_{start,finish} as PUBLIC
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 14 06:44:55 UTC 2020
Module: Mesa
Branch: master
Commit: 00b9a3443bac23a335647d6185b7d94f805af6bb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=00b9a3443bac23a335647d6185b7d94f805af6bb
Author: Rohan Garg <rohan.garg at collabora.com>
Date: Thu Jul 30 16:23:09 2020 +0200
anv: Mark anv_dump_{start,finish} as PUBLIC
In order to call these functions from gdb we need to mark both of them
as PUBLIC.
Signed-off-by: Rohan Garg <rohan.garg at collabora.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Eric Engestrom <eric at engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6125>
---
src/intel/vulkan/anv_private.h | 6 ++++++
src/intel/vulkan/meson.build | 10 ++++++++++
2 files changed, 16 insertions(+)
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 488ffdec820..8ff28bcc34a 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -4424,7 +4424,13 @@ enum anv_dump_action {
ANV_DUMP_FRAMEBUFFERS_BIT = 0x1,
};
+#ifdef DEBUG
+PUBLIC
+#endif
void anv_dump_start(struct anv_device *device, enum anv_dump_action actions);
+#ifdef DEBUG
+PUBLIC
+#endif
void anv_dump_finish(void);
void anv_dump_add_attachments(struct anv_cmd_buffer *cmd_buffer);
diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build
index 2d37fa0eb5e..65ab362c33b 100644
--- a/src/intel/vulkan/meson.build
+++ b/src/intel/vulkan/meson.build
@@ -209,12 +209,22 @@ libvulkan_intel = shared_library(
)
if with_symbols_check
+ if get_option('buildtype') == 'debug' # Same rule as `-DDEBUG` in /meson.build
+ _extra_args = [
+ '--ignore-symbol', 'anv_dump_start',
+ '--ignore-symbol', 'anv_dump_finish',
+ ]
+ else
+ _extra_args = []
+ endif
+
test(
'anv symbols check',
symbols_check,
args : [
'--lib', libvulkan_intel,
'--symbols-file', vulkan_icd_symbols,
+ _extra_args,
symbols_check_args,
],
suite : ['intel'],
More information about the mesa-commit
mailing list