summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* gallium: added null ptr check in align_free()Brian Paul2009-03-051-3/+5
|
* indices: add translate/generate functions for unfilled modesKeith Whitwell2009-03-046-1/+1622
| | | | | | | | | | | | Most of the time unfilled rendering requires a lot more thought than just translating triangles to lines or points. But sometimes, you can do exactly that, and it can be quite a bit quicker. Add code to do the translation. The caller has to determine whether it's a legal thing to do in the current state, in particular you'd need: - culling disabled - offset disabled - same front and back fill modes - possibly other stuff I can't think of.
* gallium: Remove some superfluous instances of #include "p_inlines.h".Michel Dänzer2009-03-047-7/+0
|
* gallium: Unify reference counting.Michel Dänzer2009-03-0419-84/+91
| | | | | | | | | | | | | | 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().
* Merge commit 'origin/gallium-0.1'José Fonseca2009-03-031-1/+1
|\ | | | | | | | | Conflicts: src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
| * pipebuffer: Fix copy'n'paste typo.José Fonseca2009-03-031-1/+1
| |
* | pipebuffer: Cleanup merge.José Fonseca2009-03-031-43/+0
| |
* | pb: fix up merge mistakesKeith Whitwell2009-03-031-9/+7
| |
* | Merge commit 'origin/gallium-0.1'Keith Whitwell2009-03-031-9/+64
|\| | | | | | | | | | | | | | | | | | | Conflicts: scons/gallium.py src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/gallium/include/pipe/p_defines.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_exec_draw.c
| * pipebuffer: Cleanup code & comments.José Fonseca2009-03-021-11/+7
| |
| * pipebuffer: Handle PIPE_BUFFER_USAGE_DONTBLOCK flag.José Fonseca2009-03-021-5/+15
| | | | | | | | | | | | Conflicts: src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
| * pipebuffer: Wait for the GPU to finish reading too.José Fonseca2009-03-021-3/+4
| | | | | | | | No real change, as we're not tracking relocations read/write access yet.
| * pipebuffer: Remove unused var.José Fonseca2009-03-021-1/+0
| |
| * tgsi: More descriptive sanity diagnostic messages.Michal Krol2009-02-281-15/+15
| |
* | tgsi: More descriptive sanity diagnostic messages.Michal Krol2009-02-281-15/+15
| |
* | tgsi: don't dump interpolation info except for fragment shader inputsKeith Whitwell2009-02-271-2/+6
| | | | | | | | | | Don't print the meaningless and confusing CONSTANT interpolation attribute after everything else.
* | 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-255-15/+19
| | | | | | | | | | | | | | | | | | | | 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]>
* | pipebuffer: Allow asymmetric guard sizes for under/overflow detection.José Fonseca2009-02-242-8/+13
| |
* | 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.
* | pipebuffer: Remove unused var.José Fonseca2009-02-241-1/+0
| |
* | Merge commit 'origin/gallium-0.1'José Fonseca2009-02-235-18/+127
|\| | | | | | | | | | | 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
| |
| * pipebuffer: Dump debugging info for fenced buffer list.José Fonseca2009-02-183-9/+100
| |
| * pipebuffer: Don't retry to alloc memory block on mm.José Fonseca2009-02-181-7/+3
| | | | | | | | | | It will give the same result 2nd time too, as fencing is done at a higher level.
* | gallium: use the TGSI_TEXTURE_SHADOW1D/2D/RECT texture types for TEX ↵Brian Paul2009-02-201-0/+3
| | | | | | | | | | | | | | | | instructions These texture types were defined but never put to use. For the time being though, the Mesa->TGSI translater isn't emitting these targets. See the XXX comment in map_texture_target().
* | 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 recursive makefilesJakob Bornecrantz2009-02-201-11/+3
| |
* | gallium: Improve makefiles for librariesJakob Bornecrantz2009-02-209-29/+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.
* | draw: Fix segfault if rast is nullJakob Bornecrantz2009-02-141-2/+3
| |
* | 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-187-252/+232
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_tile_cache.c
| * \ Merge branch 'master' into gallium-texture-transferKeith Whitwell2009-02-1626-63/+5963
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 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-057-245/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge commit 'origin/gallium-0.1'Keith Whitwell2009-02-181-0/+1
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_vs_aos.c
| * | | draw: Reuse xmm registers.Keith Whitwell2009-02-171-0/+13
| | | |
* | | | Merge commit 'origin/draw-vbuf-interface'Keith Whitwell2009-02-187-177/+174
|\ \ \ \
| * | | | draw: second argument to unmap is max, not countKeith Whitwell2009-02-174-9/+12
| | | | |
| * | | | draw: add map/unmap directives for swtnl driver interfaceKeith Whitwell2009-02-177-177/+171
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously draw module asked for a pointer into (mapped) vertex data, which it would incrementally fill and emit draw commands against. This was hard for the drivers to deal with, especially in the case where a draw command would force a flush and thus an unmap of the vertex data. With this change, the draw module explicitly maps & then unmaps vertex data prior to emitting draw commands.
* | | | util: Move p_debug.h into util module.José Fonseca2009-02-1853-55/+416
| | | | | | | | | | | | | | | | | | | | 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
| | | |
* | | | draw: Reuse xmm registers.Keith Whitwell2009-02-181-0/+12
| | | |
* | | | gallium: fix glean's vertProg1Alan Hourihane2009-02-163-10/+20
|/ / / | | | | | | | | | RSQ test 2 (reciprocal square toot of negative value)