Commit Graph

63 Commits

Author SHA1 Message Date
Keith Whitwell 4dd2f6640b i965g: more work on compiling, particularly the brw_draw files 2009-10-25 00:02:16 +01:00
Keith Whitwell 4d99e14535 util: _debug_printf should print even when DEBUG is not defined
The leading underscore is meaningful...  This function is used by
_warning and _error functions as well as the more common
debug_printf().

debug_printf (without underscore) gets turned off when DEBUG is
disabled, but warning/error messages still use this function to get
their message out.
(cherry picked from commit 0ac879dca7)
2009-07-29 12:48:04 +01:00
José Fonseca f2de2d5f37 util: Increase OutputDebugStringA to 4k.
According to http://unixwiz.net/techtips/outputdebugstring.html that's
how big the buffer is.

The 512bytes limitation is in kernel mode.
2009-07-01 19:10:50 +01:00
Jakob Bornecrantz f4a286e5f5 util: Add more entry points for dumping to bmp 2009-04-24 13:02:26 +02:00
Keith Whitwell 29a2f6fead util: flush stdout before emitting debug_printf on stderr
A lot of the mesa demos emit commentary on stdout, try to keep it in
sync with the corresponding output from debug_printf().
2009-04-17 11:02:07 +01:00
Michal Krol d2ed91201e util/debug: Initialise local variables. 2009-04-03 14:59:25 +02:00
José Fonseca 8c4bd92b68 util: Don't use x86 asm on x86_64. 2009-03-25 21:01:49 +00:00
Jakob Bornecrantz da96767c89 debug: Add function for writing transfers to files 2009-03-22 04:59:09 +01:00
Michel Dänzer 5e27cd46c0 gallium: Unify reference counting.
The core reference counting code is centralized in p_refcnt.h.

This has some consequences related to struct pipe_buffer:

* The screen member of struct pipe_buffer must be initialized, or
  pipe_buffer_reference() will crash trying to destroy a buffer with reference
  count 0. u_simple_screen takes care of this, but I may have missed some of
  the drivers not using it.
* Except for rare exceptions deep in winsys code, buffers must always be
  allocated via pipe_buffer_create() or via screen->*buffer_create() rather
  than via winsys->*buffer_create().
2009-03-04 11:58:48 +01:00
Keith Whitwell 02ab1eaed7 util/debug: need to fflush(stderr) on windows
Hard to believe... but true.
2009-02-20 14:27:23 +00:00
José Fonseca 5b41e30f26 util: Also output messages to stderr on windows.
When there is a console attached, and no debugger attached.
2009-02-20 14:14:19 +00:00
Michel Dänzer 3bd7c5ceff Merge branch 'gallium-texture-transfer'
Conflicts:
	src/gallium/drivers/softpipe/sp_tile_cache.c
2009-02-18 16:43:02 +01:00
José Fonseca ea4bf267e4 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.
2009-02-18 12:05:26 +00:00
Renamed from src/gallium/auxiliary/util/p_debug.c (Browse further)