summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | gallium: Improve makefiles for librariesJakob Bornecrantz2009-02-201-3/+0
| | | | | | | | | | | | | | | | The template makefile that most libraries in gallium included was based on dri and had a bunch unrelevant junk in it. Update it and improve the depending makefiles.
* | mesa: Free the util shaders with the gallium's FREE.José Fonseca2009-02-192-0/+11
| |
* | util: Use right include.José Fonseca2009-02-191-1/+1
| |
* | Merge branch 'gallium-texture-transfer'Michel Dänzer2009-02-185-236/+217
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_tile_cache.c
| * \ Merge branch 'master' into gallium-texture-transferKeith Whitwell2009-02-162-12/+14
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_cb_accum.c src/mesa/state_tracker/st_cb_drawpixels.c
| * | | gallium: Fix a couple of potential NULL pointer dereferences.Michel Dänzer2009-02-121-4/+4
| | | | | | | | | | | | | | | | A lot more test programs work.
| * | | Cosmetic: Rename struct pipe_transfer pointers from 'ps' to 'pt'.Michel Dänzer2009-02-121-13/+13
| | | | | | | | | | | | | | | | Missed these for the initial gallium-texture-transfer commit.
| * | | gallium: No longer allow CPU mapping surfaces directly.Michel Dänzer2009-02-055-229/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead, a new pipe_transfer object has to be created and mapped for transferring data between the CPU and a texture. This gives the driver more flexibility for textures in address spaces that aren't CPU accessible. This is a first pass; softpipe/xlib builds and runs glxgears, but it only shows a black window. Looks like something's off related to the Z buffer, so the depth test always fails.
* | | | util: Move p_debug.h into util module.José Fonseca2009-02-1817-18/+379
| | | | | | | | | | | | | | | | | | | | The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
* | | | util: (Re)enable memory debugging for all windows platforms.José Fonseca2009-02-181-1/+1
| |/ / |/| |
* | | gallium: const-correctness for u_linear.c functionsBrian Paul2009-02-112-7/+8
| | |
* | | gallium: silence warnings about void ptr arithmeticBrian Paul2009-02-111-5/+6
|/ /
* | gallium: remove pipe_buffer from surfacesZack Rusin2009-02-021-18/+18
| | | | | | | | | | | | | | this change disassociates, at least from the driver perspective, the surface from buffer. surfaces are technically now views on the textures so make it so by hiding the buffer in the internals of textures.