José Fonseca
712ba6e6b0
util: Rename pipe formats.
2010-03-01 18:53:31 +00:00
José Fonseca
323c6f8a2e
util: Update for os_stream changes.
2010-02-14 23:25:33 +00:00
José Fonseca
c667a5b95d
util: Use util_format_name().
2010-02-14 13:26:51 +00:00
José Fonseca
a1af8eec66
Merge remote branch 'origin/lp-binning'
...
Conflicts:
src/gallium/auxiliary/util/u_dl.c
src/gallium/auxiliary/util/u_time.h
src/gallium/drivers/llvmpipe/lp_state_derived.c
src/gallium/drivers/llvmpipe/lp_state_surface.c
src/gallium/drivers/llvmpipe/lp_tex_cache.c
src/gallium/drivers/llvmpipe/lp_tile_cache.c
2010-02-05 13:48:35 +00:00
José Fonseca
c75d64490e
auxiliary: util_stream -> os_stream
2010-02-04 18:44:51 +00:00
José Fonseca
6b424a0550
util: Reimplement all utility functions in terms of the new OS abstraction.
2010-02-03 12:13:06 +00:00
José Fonseca
28486880ca
gallium: pipe/p_inlines.h -> util/u_inlines.h
2010-02-02 14:42:17 +00:00
Brian Paul
4f5675e94b
gallium/util: added debug_dump_texture() and ppm output
...
Now we can get dump debug images on Linux too.
2010-01-14 19:04:42 -07:00
Brian Paul
25024d9482
Merge branch 'mesa_7_7_branch'
...
Conflicts:
configs/darwin
src/gallium/auxiliary/util/u_clear.h
src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
src/mesa/drivers/dri/i965/brw_draw_upload.c
2009-12-31 09:02:27 -07:00
Vinson Lee
51dcea2aac
util: Ensure debug_dump_flags generates a null-terminated string.
2009-12-23 15:19:45 -08:00
Keith Whitwell
aa02683e45
Merge branch 'i965g-restart'
...
Conflicts:
configure.ac
2009-12-22 09:40:39 +00:00
Michal Krol
b1ed72ebe2
Move the remaining format pf_get_* functions to u_format.h.
...
Previously they depended on format blocks, but after removing those
they started depending on format encoding.
2009-12-17 23:41:57 +01:00
Roland Scheidegger
ac400ffce6
gallium: interface cleanups, remove nblocksx/y from pipe_texture and more
...
This patch removes nblocksx, nblocksy arrays from pipe_texture (can be
recalculated if needed). Furthermore, pipe_format_block struct is gone
completely (again, contains just derived state).
nblocksx, nblocksy, block are also removed from pipe_transfer, together with
the format enum (can be obtained from the texture associated with the transfer).
2009-11-30 20:29:18 +01:00
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