util: Getting u_debug.h not depends on pipe/*

Move pipe_debug_type into u_debug.h
Move pipe_debug_callback into u_debug.h

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15657>
This commit is contained in:
Yonggang Luo
2022-03-30 06:10:25 +08:00
committed by Marge Bot
parent b2ece67f11
commit be1b30393b
6 changed files with 43 additions and 51 deletions

View File

@@ -425,20 +425,6 @@ u_uintN_max(unsigned bit_size)
return UINT64_MAX >> (64 - bit_size);
}
/* TODO: In future we should try to move this to u_debug.h once header
* dependencies are reorganised to allow this.
*/
enum util_debug_type
{
UTIL_DEBUG_TYPE_OUT_OF_MEMORY = 1,
UTIL_DEBUG_TYPE_ERROR,
UTIL_DEBUG_TYPE_SHADER_INFO,
UTIL_DEBUG_TYPE_PERF_INFO,
UTIL_DEBUG_TYPE_INFO,
UTIL_DEBUG_TYPE_FALLBACK,
UTIL_DEBUG_TYPE_CONFORMANCE,
};
#if !defined(alignof) && !defined(__cplusplus)
#if __STDC_VERSION__ >= 201112L
#define alignof(t) _Alignof(t)