util: Rename pipe_debug_type to util_debug_type
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:
@@ -32,7 +32,7 @@
|
|||||||
#include "util/u_string.h"
|
#include "util/u_string.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
u_async_debug_message(void *data, unsigned *id, enum pipe_debug_type type,
|
u_async_debug_message(void *data, unsigned *id, enum util_debug_type type,
|
||||||
const char *fmt, va_list args)
|
const char *fmt, va_list args)
|
||||||
{
|
{
|
||||||
struct util_async_debug_callback *adbg = data;
|
struct util_async_debug_callback *adbg = data;
|
||||||
|
@@ -43,7 +43,7 @@ extern "C" {
|
|||||||
|
|
||||||
struct util_debug_message {
|
struct util_debug_message {
|
||||||
unsigned *id;
|
unsigned *id;
|
||||||
enum pipe_debug_type type;
|
enum util_debug_type type;
|
||||||
char *msg;
|
char *msg;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ namespace {
|
|||||||
void
|
void
|
||||||
debug_notify_callback(void *data,
|
debug_notify_callback(void *data,
|
||||||
unsigned *id,
|
unsigned *id,
|
||||||
enum pipe_debug_type type,
|
enum util_debug_type type,
|
||||||
const char *fmt,
|
const char *fmt,
|
||||||
va_list args) {
|
va_list args) {
|
||||||
const command_queue *queue = (const command_queue *)data;
|
const command_queue *queue = (const command_queue *)data;
|
||||||
|
@@ -1025,7 +1025,7 @@ struct util_debug_callback
|
|||||||
*/
|
*/
|
||||||
void (*debug_message)(void *data,
|
void (*debug_message)(void *data,
|
||||||
unsigned *id,
|
unsigned *id,
|
||||||
enum pipe_debug_type type,
|
enum util_debug_type type,
|
||||||
const char *fmt,
|
const char *fmt,
|
||||||
va_list args);
|
va_list args);
|
||||||
void *data;
|
void *data;
|
||||||
|
@@ -687,7 +687,7 @@ debug_pop_group(struct gl_debug_state *debug)
|
|||||||
static void
|
static void
|
||||||
_debug_message(void *data,
|
_debug_message(void *data,
|
||||||
unsigned *id,
|
unsigned *id,
|
||||||
enum pipe_debug_type ptype,
|
enum util_debug_type ptype,
|
||||||
const char *fmt,
|
const char *fmt,
|
||||||
va_list args)
|
va_list args)
|
||||||
{
|
{
|
||||||
|
@@ -428,7 +428,7 @@ u_uintN_max(unsigned bit_size)
|
|||||||
/* TODO: In future we should try to move this to u_debug.h once header
|
/* TODO: In future we should try to move this to u_debug.h once header
|
||||||
* dependencies are reorganised to allow this.
|
* dependencies are reorganised to allow this.
|
||||||
*/
|
*/
|
||||||
enum pipe_debug_type
|
enum util_debug_type
|
||||||
{
|
{
|
||||||
PIPE_DEBUG_TYPE_OUT_OF_MEMORY = 1,
|
PIPE_DEBUG_TYPE_OUT_OF_MEMORY = 1,
|
||||||
PIPE_DEBUG_TYPE_ERROR,
|
PIPE_DEBUG_TYPE_ERROR,
|
||||||
|
@@ -68,7 +68,7 @@ _debug_vprintf(const char *format, va_list ap)
|
|||||||
void
|
void
|
||||||
_util_debug_message(struct util_debug_callback *cb,
|
_util_debug_message(struct util_debug_callback *cb,
|
||||||
unsigned *id,
|
unsigned *id,
|
||||||
enum pipe_debug_type type,
|
enum util_debug_type type,
|
||||||
const char *fmt, ...)
|
const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
@@ -281,7 +281,7 @@ void
|
|||||||
_util_debug_message(
|
_util_debug_message(
|
||||||
struct util_debug_callback *cb,
|
struct util_debug_callback *cb,
|
||||||
unsigned *id,
|
unsigned *id,
|
||||||
enum pipe_debug_type type,
|
enum util_debug_type type,
|
||||||
const char *fmt, ...) _util_printf_format(4, 5);
|
const char *fmt, ...) _util_printf_format(4, 5);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user