util: Move p_debug.h into util module.

The debug functions depend on several util function for os abstractions, and
these depend on debug functions, so a seperate module is not possible.
This commit is contained in:
José Fonseca 2009-02-18 12:05:26 +00:00
parent 06cd416d7c
commit ea4bf267e4
73 changed files with 80 additions and 79 deletions

View File

@ -28,7 +28,7 @@
/* Authors: Zack Rusin <zack@tungstengraphics.com>
*/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_memory.h"

View File

@ -30,7 +30,7 @@
* Zack Rusin <zack@tungstengraphics.com>
*/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_memory.h"
#include "cso_hash.h"

View File

@ -29,12 +29,12 @@
* \file
* Vertex buffer drawing stage.
*
* \author José Fonseca <jrfonsec@tungstengraphics.com>
* \author Jose Fonseca <jrfonsec@tungstengraphics.com>
* \author Keith Whitwell <keith@tungstengraphics.com>
*/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_math.h"
#include "util/u_memory.h"

View File

@ -32,7 +32,7 @@
#include "util/u_memory.h"
#include "util/u_math.h"
#include "pipe/p_shader_tokens.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "tgsi/tgsi_parse.h"
#include "tgsi/tgsi_util.h"
#include "tgsi/tgsi_exec.h"

View File

@ -30,7 +30,7 @@
#include "gallivm_p.h"
#include "pipe/p_shader_tokens.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include <llvm/BasicBlock.h>
#include <llvm/Module.h>

View File

@ -34,7 +34,7 @@
#include "indices/u_indices.h"
#include "indices/u_indices_priv.h"
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_defines.h"
#include "util/u_memory.h"

View File

@ -72,7 +72,7 @@ def prolog():
#include "indices/u_indices.h"
#include "indices/u_indices_priv.h"
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_defines.h"
#include "util/u_memory.h"

View File

@ -45,7 +45,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_error.h"
#include "pipe/p_state.h"
#include "pipe/p_inlines.h"

View File

@ -43,7 +43,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_error.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_thread.h"
#include "util/u_memory.h"
#include "util/u_double_list.h"

View File

@ -51,7 +51,7 @@
#define PB_BUFFER_FENCED_H_
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#ifdef __cplusplus

View File

@ -34,7 +34,7 @@
*/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_memory.h"
#include "pb_buffer.h"
#include "pb_bufmgr.h"

View File

@ -34,7 +34,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_memory.h"
#include "pb_buffer.h"

View File

@ -35,7 +35,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_thread.h"
#include "util/u_memory.h"
#include "util/u_double_list.h"

View File

@ -34,7 +34,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_thread.h"
#include "util/u_math.h"
#include "util/u_memory.h"

View File

@ -34,7 +34,7 @@
*/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_memory.h"
#include "pb_buffer.h"

View File

@ -34,7 +34,7 @@
#include "pipe/p_defines.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_thread.h"
#include "util/u_memory.h"
#include "util/u_double_list.h"

View File

@ -34,7 +34,7 @@
*/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_memory.h"
#include "pb_buffer.h"
#include "pb_bufmgr.h"

View File

@ -36,7 +36,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_thread.h"
#include "pipe/p_defines.h"
#include "util/u_memory.h"

View File

@ -38,7 +38,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_error.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_thread.h"
#include "pipe/p_defines.h"
#include "util/u_memory.h"

View File

@ -36,7 +36,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_error.h"
#include "util/u_memory.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pb_buffer.h"
#include "pb_buffer_fenced.h"

View File

@ -26,7 +26,7 @@
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "rtasm_cpu.h"

View File

@ -31,7 +31,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_thread.h"
#include "util/u_memory.h"

View File

@ -38,7 +38,7 @@
#include <stdio.h>
#include "util/u_memory.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "rtasm_execmem.h"
#include "rtasm_ppc.h"

View File

@ -26,7 +26,7 @@
#if defined(PIPE_ARCH_X86)
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_pointer.h"
#include "rtasm_execmem.h"

View File

@ -25,7 +25,7 @@
*
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_shader_tokens.h"
#include "tgsi_build.h"
#include "tgsi_parse.h"

View File

@ -25,7 +25,7 @@
*
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_string.h"
#include "tgsi_dump.h"
#include "tgsi_info.h"

View File

@ -25,7 +25,7 @@
*
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_string.h"
#include "tgsi_dump_c.h"
#include "tgsi_build.h"

View File

@ -25,7 +25,7 @@
*
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "tgsi_info.h"
static const struct tgsi_opcode_info opcode_info[TGSI_OPCODE_LAST] =

View File

@ -25,7 +25,7 @@
*
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "tgsi_iterate.h"
boolean

View File

@ -25,7 +25,7 @@
*
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_shader_tokens.h"
#include "tgsi_parse.h"
#include "tgsi_build.h"

View File

@ -33,7 +33,7 @@
#if defined(PIPE_ARCH_PPC)
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_shader_tokens.h"
#include "util/u_math.h"
#include "util/u_memory.h"

View File

@ -25,7 +25,7 @@
*
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "tgsi_sanity.h"
#include "tgsi_info.h"
#include "tgsi_iterate.h"

View File

@ -29,7 +29,7 @@
#if defined(PIPE_ARCH_X86)
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_shader_tokens.h"
#include "util/u_math.h"
#if defined(PIPE_ARCH_SSE)

View File

@ -25,7 +25,7 @@
*
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "tgsi_text.h"
#include "tgsi_build.h"
#include "tgsi_info.h"

View File

@ -31,7 +31,7 @@
* Authors: Brian Paul
*/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "tgsi_transform.h"

View File

@ -25,7 +25,7 @@
*
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_shader_tokens.h"
#include "tgsi_parse.h"
#include "tgsi_build.h"

View File

@ -4,7 +4,7 @@ include $(TOP)/configs/current
LIBNAME = util
C_SOURCES = \
p_debug.c \
u_debug.c \
u_blit.c \
u_cache.c \
u_draw_quad.c \

View File

@ -3,11 +3,11 @@ Import('*')
util = env.ConvenienceLibrary(
target = 'util',
source = [
'p_debug.c',
'p_debug_mem.c',
'p_debug_prof.c',
'u_blit.c',
'u_cache.c',
'u_debug.c',
'u_debug_memory.c',
'u_debug_profile.c',
'u_draw_quad.c',
'u_gen_mipmap.c',
'u_handle_table.c',

View File

@ -34,7 +34,7 @@
#include "pipe/p_context.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_defines.h"
#include "pipe/p_inlines.h"
#include "pipe/p_shader_tokens.h"

View File

@ -36,7 +36,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_math.h"
#include "util/u_memory.h"

View File

@ -59,7 +59,7 @@
#endif
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_format.h"
#include "pipe/p_state.h"
#include "pipe/p_inlines.h"

View File

@ -35,13 +35,13 @@
* @author Jose Fonseca <jrfonseca@tungstengraphics.com>
*/
#ifndef P_DEBUG_H_
#define P_DEBUG_H_
#ifndef U_DEBUG_H_
#define U_DEBUG_H_
#include <stdarg.h>
#include "p_compiler.h"
#include "pipe/p_compiler.h"
#ifdef __cplusplus
@ -358,4 +358,4 @@ void debug_dump_surface_bmp(const char *filename,
}
#endif
#endif /* P_DEBUG_H_ */
#endif /* U_DEBUG_H_ */

View File

@ -44,7 +44,7 @@
#include <stdlib.h>
#endif
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_double_list.h"

View File

@ -35,7 +35,7 @@
#include "pipe/p_context.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_defines.h"
#include "pipe/p_inlines.h"
#include "pipe/p_shader_tokens.h"

View File

@ -34,7 +34,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_memory.h"
#include "util/u_handle_table.h"

View File

@ -39,7 +39,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "cso_cache/cso_hash.h"

View File

@ -35,7 +35,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_error.h"
#include "cso_cache/cso_hash.h"

View File

@ -1,5 +1,5 @@
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "u_linear.h"
void

View File

@ -40,7 +40,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#ifdef __cplusplus

View File

@ -36,7 +36,7 @@
#include "util/u_pointer.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#ifdef __cplusplus
@ -56,7 +56,7 @@ extern "C" {
/* memory debugging */
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#define MALLOC( _size ) \
debug_malloc( __FILE__, __LINE__, __FUNCTION__, _size )

View File

@ -24,7 +24,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_memory.h"
#include "util/u_mm.h"

View File

@ -34,7 +34,7 @@
#include "pipe/p_context.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_defines.h"
#include "pipe/p_inlines.h"
#include "pipe/p_screen.h"

View File

@ -1,7 +1,7 @@
#include "cell/common.h"
#include "pipe/p_shader_tokens.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "tgsi/tgsi_parse.h"
//#include "tgsi_build.h"
#include "tgsi/tgsi_util.h"

View File

@ -31,7 +31,7 @@
#include "i915_debug.h"
#include "i915_batch.h"
#include "pipe/internal/p_winsys_screen.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
static void

View File

@ -40,7 +40,7 @@
#include "draw/draw_context.h"
#include "draw/draw_vbuf.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_inlines.h"
#include "pipe/internal/p_winsys_screen.h"
#include "util/u_math.h"

View File

@ -30,7 +30,7 @@
*/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "brw_eu.h"

View File

@ -1,7 +1,7 @@
#ifndef __NOUVEAU_STATEOBJ_H__
#define __NOUVEAU_STATEOBJ_H__
#include "pipe/p_debug.h"
#include "util/u_debug.h"
struct nouveau_stateobj_reloc {
struct pipe_buffer *bo;

View File

@ -1,5 +1,5 @@
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_inlines.h"
#include "pipe/internal/p_winsys_screen.h"
#include "pipe/p_compiler.h"

View File

@ -38,7 +38,7 @@
*/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_inlines.h"
#include "pipe/internal/p_winsys_screen.h"

View File

@ -38,7 +38,7 @@
*/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_inlines.h"
#include "pipe/internal/p_winsys_screen.h"

View File

@ -21,7 +21,7 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "r300_chipset.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
/* r300_chipset: A file all to itself for deducing the various properties of
* Radeons. */

View File

@ -23,7 +23,7 @@
#include "util/u_math.h"
#include "util/u_pack_color.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/internal/p_winsys_screen.h"
#include "r300_context.h"

View File

@ -30,7 +30,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_context.h"

View File

@ -45,7 +45,7 @@
#endif
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_memory.h"
#include "util/u_string.h"
#include "util/u_stream.h"

View File

@ -30,7 +30,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/internal/p_winsys_screen.h"

View File

@ -30,8 +30,9 @@
#define PIPE_FORMAT_H
#include "p_compiler.h"
#include "p_debug.h"
/* FIXME: remove these header dependencies */
#include "util/u_debug.h"
#include "util/u_string.h"
#ifdef __cplusplus

View File

@ -30,7 +30,7 @@
#include "GL/gl.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_thread.h"
#include "shared/stw_public.h"

View File

@ -27,7 +27,7 @@
#include <windows.h>
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "pipe/p_screen.h"
#include "shared/stw_device.h"

View File

@ -25,7 +25,7 @@
*
**************************************************************************/
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "stw_pixelformat.h"
#include "stw_public.h"

View File

@ -27,7 +27,7 @@
#include <windows.h>
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "shared/stw_public.h"
#include "stw_wgl.h"
#include "stw.h"

View File

@ -34,7 +34,7 @@
#include "xlib_brw_aub.h"
#include "pipe/p_context.h"
#include "pipe/p_state.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
#include "util/u_memory.h"

View File

@ -41,7 +41,7 @@
#include "shader/prog_instruction.h"
#include "shader/prog_parameter.h"
#include "shader/prog_print.h"
#include "pipe/p_debug.h"
#include "util/u_debug.h"
/*
* Map mesa register file to TGSI register file.