Commit Graph

31 Commits

Author SHA1 Message Date
José Fonseca 47f639a629 gallium: Disable debug_get_option for release builds on Windows.
It always creates the C:\gallium.cfg , even if it does not exists, which
might be confusing.
2008-05-09 14:34:51 +09:00
José Fonseca 33cda1e5e5 gallium: Fix release build.
pf_sprint_name might be used there too.
2008-05-07 21:37:32 +09:00
Michal Krol 5efd2d59eb gallium: Fix compilation errors. 2008-05-07 14:24:14 +02:00
José Fonseca 55c13f5af7 gallium: Implement pf_sprint_name as a simple static table. 2008-05-07 20:27:42 +09:00
José Fonseca 942b02956e gallium: Use the u_string.h functions. 2008-05-07 19:39:34 +09:00
José Fonseca a6ad492774 gallium: Simple facility to dump and view images for debugging. 2008-05-07 04:51:55 +09:00
José Fonseca c6fadd9fad gallium: Add newline to eof. 2008-05-01 22:32:49 +09:00
José Fonseca dadb11f5d9 gallium: Fix release build. 2008-05-01 03:43:19 +09:00
José Fonseca cafb545721 d3d: Windows miniport driver portability fixes. 2008-05-01 02:25:23 +09:00
Zack Rusin 0d80f407f1 silence p_debug.h:63: warning: ISO C forbids forward references to ‘enum’ types 2008-04-29 17:21:10 -04:00
Keith Whitwell 9bfe1a3d50 gallium: add debug_print_format() make it easier to print format error messages 2008-04-29 20:48:14 +01:00
José Fonseca b06cd4debf gallium: Windows user mode portability fixes. 2008-04-25 18:19:51 +09:00
José Fonseca 3a765bbe00 gallium: Use debug_get_bool_option for controlling assert failure behaviour.
Add
  GALLIUM_ABORT_ON_ASSERT=no
to C:\gallium.cfg instead.
2008-04-17 00:20:09 +09:00
José Fonseca a68f664124 gallium: Cache one line worth of debug output on windows.
The windbg connection seems synchronous, so this speeds up when printing
little text at a time (e.g., tgsi output).
2008-04-15 18:11:47 +09:00
José Fonseca 5b8fa51847 gallium: Don't assume snprintf are always available. 2008-04-15 10:13:52 +09:00
José Fonseca c1d26d3dcc gallium: Use the custom snprintf implementation everywhere (for Win32).
Because winddk's implemenation does not handle floats.
2008-04-05 13:45:40 +09:00
José Fonseca 6fa0bd0671 gallium: Fix default option on Windows. 2008-03-25 11:37:24 +00:00
Brian 4654803e25 gallium: fix a few bugs, warnings in the p_debug code
added missing _ to a _debug_printf() call.
2008-03-24 18:49:56 -06:00
José Fonseca e8c6ea4f60 gallium: Simple cross platform get-opt system.
Uses getenv on Linux, and a memory mapped text file on Windows.

It supports boolean options, flags, and plain strings.
2008-03-24 22:31:36 +00:00
José Fonseca dd51365acd gallium: cleanup p_debug
Now debug_printf is disabled on release builds. Use debug_error or
_debug_printf to output messages on release versions.
2008-03-24 22:31:36 +00:00
José Fonseca 48ef11d308 gallium: Remove the debug_mask_* stuff.
Overcomplex and not much different from using a global variable...
2008-03-23 18:57:35 +00:00
Keith Whitwell a88202d3b0 gallium: add debug facility to dump random blobs as hex 2008-03-20 13:10:32 +00:00
José Fonseca e08501b457 gallium: Add generic enum and flags dumping utility functions. 2008-03-19 16:42:19 +00:00
Keith Whitwell b0d5519b44 gallium: make the windows config function more readable with 80-ish columns 2008-03-13 18:10:26 +00:00
José Fonseca a2ea51ed82 gallium: Change assert behavior on runtime (Mark Mueller). 2008-03-12 15:02:50 +00:00
José Fonseca 45c5989511 gallium: Conditional debugging output.
Generalize the conditional debugging output code found trhought the gallium
drivers.
2008-03-12 00:27:52 +00:00
José Fonseca 3102268154 gallium: Use hardcoded breakpoints on x86 targets. 2008-03-10 21:18:00 +00:00
José Fonseca b721bc8792 gallium: WinCE portability fixes. 2008-03-10 14:00:13 +00:00
José Fonseca b1922de9f3 gallium: Use custom vsnprintf in WINDDK.
EngDebugPrint does not handle float point arguments, so we need to use
our own vsnprintf implementation.
2008-03-05 11:39:11 +01:00
Keith Whitwell 689e1c5d50 win32: don't prepend all debug with gallium3d 2008-03-03 17:50:10 +01:00
José Fonseca 92fcbf6e7b Code reorganization: s/aux/auxiliary/.
"aux" is a reserved name on Windows (X_X)
2008-02-15 20:07:18 +09:00
Renamed from src/gallium/aux/util/p_debug.c (Browse further)