From 00b9a3443bac23a335647d6185b7d94f805af6bb Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Thu, 30 Jul 2020 16:23:09 +0200 Subject: [PATCH] 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 Acked-by: Lionel Landwerlin Reviewed-by: Eric Engestrom Part-of: --- 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 488ffde..8ff28bc 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 2d37fa0..65ab362 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'], -- 2.7.4