aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
Commit message (Collapse)AuthorAgeFilesLines
* util/upload: catch failures to map_range and return errorKeith Whitwell2009-05-081-13/+17
| | | | Caller may be able to do something about this - eg flush and retry.
* Merge branch 'mesa_7_5_branch'Brian Paul2009-05-051-10/+86
|\
| * gallium: fix texcoords for cubemap mipmap generationBrian Paul2009-05-051-10/+86
| | | | | | | | | | We need to use (s,t,r) cubemap coords when sampling from the cubemap texture so the rendered quad gets texture samples from the correct cube face.
* | util: Limit the stack walk to avoid referencing undefined memory.José Fonseca2009-05-051-1/+10
|/
* util: Remove unix includes.José Fonseca2009-04-271-4/+0
|
* util/time: add util_time_sleep() for windows userspaceKeith Whitwell2009-04-271-0/+9
| | | | Somebody with a clue could probably do a better implemenation...
* util: Add debug_printf_onceMicah Dowty2009-04-241-0/+16
|
* util: Add more entry points for dumping to bmpJakob Bornecrantz2009-04-242-18/+43
|
* gallium: license, copyrightBrian Paul2009-04-222-0/+62
|
* util: don't set unused blend stateKeith Whitwell2009-04-202-8/+0
| | | | Try to avoid creating multiple blend atoms.
* util: flush stdout before emitting debug_printf on stderrKeith Whitwell2009-04-171-0/+2
| | | | | A lot of the mesa demos emit commentary on stdout, try to keep it in sync with the corresponding output from debug_printf().
* util: Fix surface usageJakob Bornecrantz2009-04-151-2/+2
|
* gallium: new, simple RGBA surface create/destroy helpersBrian Paul2009-04-154-0/+167
| | | | Use these for quickly creating an RGBA drawing surface.
* gallium: remove unneeded compressed=0 assignmentBrian Paul2009-04-091-1/+0
|
* gallium: handle the case of util_pack_z_stencil(format=PIPE_FORMAT_S8_UNORM)Brian Paul2009-04-081-0/+8
| | | | Fixes failed assertion in glean fbo test.
* gallium: Clean up driver clear() interface.Michel Dänzer2009-04-042-6/+68
| | | | | Only allows clearing currently bound buffers, but colour and depth/stencil in a single call.
* gallium: Add utility helper for packing combined depth/stencil values.Michel Dänzer2009-04-041-0/+20
|
* util/debug: Initialise local variables.Michal Krol2009-04-031-2/+2
|
* util: Fix x86_64 build.José Fonseca2009-04-011-1/+1
|
* util: Lookup symbol names from addresses.José Fonseca2009-04-015-1/+308
| | | | | | Nice for stack backtraces. Windows-only for now.
* gallium: added util_is_inf_or_nan() function to u_math.hBrian Paul2009-03-311-0/+12
|
* util: Enable assembly breakpointt on x86_64.José Fonseca2009-03-311-1/+1
| | | | A breakpoint is much nicer than abort when gdb is attached.
* util: Support Z24S8/Z24X8.José Fonseca2009-03-271-0/+16
|
* util: Use size_t (for x86_64).José Fonseca2009-03-251-1/+1
|
* util: Don't use x86 asm on x86_64.José Fonseca2009-03-254-16/+21
|
* Add #ifdefs needed to compile Gallium on Solaris with gcc or Sun ccAlan Coopersmith2009-03-253-10/+10
| | | | Signed-off-by: Alan Coopersmith <[email protected]>
* debug: Add function for writing transfers to filesJakob Bornecrantz2009-03-222-32/+42
|
* util: Add a new macro for testing empty lists.José Fonseca2009-03-231-0/+3
|
* gallium/util: add upload manager helper moduleKeith Whitwell2009-03-204-0/+297
| | | | | | | | Add a module that will manage uploading and coalescing multiple user-buffers, malloc-buffers and other random data that doesn't happen to be in a GPU buffer already. The module stuffs multiple little uploads into larger GPU buffers to reduce create/destroy overheads, etc.
* util: avoid clashprone UINT, UBYTE enum valuesKeith Whitwell2009-03-181-58/+58
|
* util: Realloc takes bytes.José Fonseca2009-03-171-2/+2
|
* util: bitmask data type.José Fonseca2009-03-163-0/+435
|
* gallium: consolidate bypass_vs and bypass_clipping flagsKeith Whitwell2009-03-132-37/+10
| | | | | | | | | The draw module provides a similar interface to the driver which is retained as various bits of hardware may be able to take on incremental parts of the vertex pipeline. However, there's no need to advertise all this complexity to the state tracker. There are basically two modes now - normal and passthrough/screen-coords.
* gallium: no need to keep a copy of shader tokens in state trackerKeith Whitwell2009-03-134-73/+36
| | | | | | | | Any driver who needs a copy of the shader tokens must organize to do so itself. This has been the case for a long time, but there was still defensive code in the state tracker, which is now removed. Any bugs resulting from this need to be fixed in the offending driver...
* gallium: Remove do_flip argument from surface_copyJakob Bornecrantz2009-03-131-2/+2
| | | | | | | I should have gotten most uses and implementation correctly fixed, but things might break. Feel free to blame me.
* util: fix debug_assert() to avoid unused variable warnings in release buildsKeith Whitwell2009-03-121-1/+1
|
* gallium: added null ptr check in align_free()Brian Paul2009-03-051-3/+5
|
* gallium: Remove some superfluous instances of #include "p_inlines.h".Michel Dänzer2009-03-041-1/+0
|
* gallium: Unify reference counting.Michel Dänzer2009-03-047-32/+49
| | | | | | | | | | | | | | 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().
* util: set vbuf.max_index in draw_vertex_buffer()Keith Whitwell2009-02-271-0/+2
| | | | (cherry picked from commit 1350f2efba5eeceebe0e711db6152c29e9889ce7)
* gallium: Add support for BSD operating systems, tested with FreeBSDBenjamin Close2009-02-253-10/+10
| | | | | | | | | | BSD supports pipe in the same way as linux hence options which are safe for linux are also safe for BSD. Define PIPE_OS_BSD in include/pipe/p_config.h and adjust the defines to make use of it. Also define MAP_ANONYMOUS for BSD systems which use MAP_ANON Signed-off-by: Benjamin Close <[email protected]>
* util: Don't use 0-sized arrays.José Fonseca2009-02-241-0/+6
| | | | Not supported by MSVC.
* gallium: Add pipe_buffer_write/read inlines.José Fonseca2009-02-242-21/+6
| | | | Saves code, and will simplify future interface changes.
* Merge commit 'origin/gallium-0.1'José Fonseca2009-02-231-2/+24
|\ | | | | | | | | | | Conflicts: src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c src/gallium/auxiliary/util/u_tile.c
| * util: Use a checkboard pattern instead of asserting for unknown formats.José Fonseca2009-02-201-2/+24
| | | | | | | | Useful to replay traces which use DXTC textures...
| * util: Support PIPE_FORMAT_Z32_FLOAT in pipe_tile_raw_to_rgbaJosé Fonseca2009-02-191-0/+29
| |
| * gallium: Fix typeo in mipmap filter for GL_UNSIGNED_SHORT_1_5_5_5_REVBrian Paul2009-01-061-1/+1
| | | | | | | | This is copied from Ian's commit a330933bb75c38148668637cd22b90d75d39506f
* | util/debug: need to fflush(stderr) on windowsKeith Whitwell2009-02-201-0/+1
| | | | | | | | Hard to believe... but true.
* | util: Also output messages to stderr on windows.José Fonseca2009-02-201-0/+6
| | | | | | | | When there is a console attached, and no debugger attached.
* | util: Stack backtracing facilities.José Fonseca2009-02-204-0/+170
| | | | | | | | Not much useful until we have symbol lookup.