In order to call these functions from gdb we need to mark both of them
as PUBLIC.
Signed-off-by: Rohan Garg <rohan.garg@collabora.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6125>
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);
)
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'],