util: move debug_memory_{begin,end} to os_memory_debug.h

This is where the other debug_memory_* functions are declared, so let's
move it here for symmetry.

This allows us to drop an include of u_debug_gallium.h, which makes us
depend on gallium-headers in non-gallium code.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3901>
This commit is contained in:
Erik Faye-Lund 2020-02-19 12:51:08 +01:00 committed by Marge Bot
parent 31a7815785
commit 5f0b984cb8
4 changed files with 6 additions and 8 deletions

View file

@ -35,12 +35,6 @@
extern "C" {
#endif
unsigned long
debug_memory_begin(void);
void
debug_memory_end(unsigned long beginning);
#ifdef DEBUG
void debug_print_format(const char *msg, unsigned fmt);
#else

View file

@ -29,7 +29,6 @@
#include "glapi/glapi.h"
#include "util/u_debug.h"
#include "util/u_debug_gallium.h"
#include "util/u_math.h"
#include "util/u_memory.h"
#include "pipe/p_screen.h"

View file

@ -57,6 +57,12 @@ void *
debug_realloc(const char *file, unsigned line, const char *function,
void *old_ptr, size_t old_size, size_t new_size );
unsigned long
debug_memory_begin(void);
void
debug_memory_end(unsigned long start_no);
void
debug_memory_tag(void *ptr, unsigned tag);

View file

@ -39,7 +39,6 @@
#include "os/os_thread.h"
#include "util/u_debug.h"
#include "util/u_debug_gallium.h"
#include "util/u_debug_stack.h"
#include "util/list.h"
#include "util/os_memory.h"