summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* gallium/util: added pipe_put_tile_rgba_format()Brian Paul2011-01-222-1/+18
|
* gallium/util: simplify pipe_get_tile_rgba()Brian Paul2011-01-221-20/+1
| | | | Implement it in terms of pipe_get_tile_rgba_format()
* gallium/softpipe: replace pipe_get_tile_swizzle()Brian Paul2011-01-222-55/+10
| | | | | | The new function, pipe_get_tile_rgba_format(), no longer takes a swizzle (we weren't actually using it anywhere). Rename it to indicate that the format is passed explicitly.
* gallium/util: added util_format_linear()Brian Paul2011-01-221-1/+41
|
* draw: add missing LP_CHECK_MEMBER_OFFSET()Brian Paul2011-01-151-0/+2
|
* Merge branch 'draw-instanced'Brian Paul2011-01-1511-12/+209
|\ | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_llvm.c src/gallium/drivers/llvmpipe/lp_state_fs.c src/glsl/ir_set_program_inouts.cpp src/mesa/tnl/t_vb_program.c
| * gallivm/llvmpipe: implement system values and instanceIDBrian Paul2010-12-083-4/+96
| |
| * draw: setup instance ID for SSE generatorBrian Paul2010-12-081-0/+6
| |
| * draw: setup instance ID for VS interpreterBrian Paul2010-12-081-0/+6
| |
| * tgsi/ppc: add case for system values and assertBrian Paul2010-12-081-1/+3
| |
| * tgsi/sse: add support for system valuesBrian Paul2010-12-081-3/+51
| |
| * tgsi: new tgsi_shader_info fields for system valuesBrian Paul2010-12-082-1/+22
| |
| * tgsi: add support for system values to TGSI interpreterBrian Paul2010-12-082-3/+23
| |
* | draw: Fix an off-by-one bug in a vsplit assertion.Chia-I Wu2011-01-141-1/+2
| | | | | | | | | | | | | | | | When use_spoken is true, istart (the first vertex of this segment) is replaced by i0 (the spoken vertex of the fan). There are still icount vertices. Thanks to Brian Paul for spotting this.
* | util: Undo spurious changes in last commit.José Fonseca2011-01-131-1/+1
| |
* | util: Don't limit debug_printf message length on unices.José Fonseca2011-01-131-1/+6
| |
* | noop: make noop useable like trace or rbugJerome Glisse2011-01-091-0/+51
| | | | | | | | | | | | | | | | If you want to enable noop set GALLIUM_NOOP=1 as an env variable. You need first to enable noop wrapping for your driver see change to src/gallium/targets/dri-r600/ in this commit as an example. Signed-off-by: Jerome Glisse <[email protected]>
* | util: add comments to u_upload_mgr and u_inlinesMarek Olšák2011-01-063-15/+38
| |
* | tgsi: remove redundant name tables from tgsi_text, use those from tgsi_dumpMarek Olšák2011-01-063-56/+33
| | | | | | | | | | I also specified the array sizes in the header so that one can use the Elements macro on it.
* | gallium: drivers should reference vertex buffersMarek Olšák2011-01-063-15/+31
| | | | | | | | So that a state tracker can unreference them after set_vertex_buffers.
* | u_upload_mgr: new featuresMarek Olšák2011-01-062-26/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added a parameter to specify a minimum offset that should be returned. r300g needs this to better implement user buffer uploads. This weird requirement comes from the fact that the Radeon DRM doesn't support negative offsets. - Added a parameter to notify a driver that the upload flush occured. A driver may skip buffer validation if there was no flush, resulting in a better performance. - Added a new upload function that returns a pointer to the upload buffer directly, so that the buffer can be filled e.g. by the translate module.
* | u_upload_mgr: keep the upload buffer mapped until it is flushedMarek Olšák2011-01-061-52/+14
| | | | | | | | | | | | | | The map/unmap overhead can be significant even though there is no waiting on busy buffers. There is simply a huge number of uploads. This is a performance optimization for Torcs, a car racing game.
* | util: Add forward declarations in u_index_modify.h.Vinson Lee2010-12-301-0/+3
| |
* | tgsi: Clean up header file inclusion in tgsi_text.h.Vinson Lee2010-12-301-2/+4
| |
* | tgsi: Clean up header file inclusion in tgsi_sanity.h.Vinson Lee2010-12-301-2/+4
| |
* | util: add a way to store translated indices to a user memory in u_index_modifyMarek Olšák2010-12-292-34/+101
| | | | | | | | I am about to use the upload buffer in r300g instead.
* | tgsi_dump: fix assert due to missing property name.Dave Airlie2010-12-281-1/+2
| |
* | tgsi_text: just parse as an integer (value is a boolean).Dave Airlie2010-12-241-1/+0
| | | | | | | | | | | | fixes warning reported by vlee on irc. Signed-off-by: Dave Airlie <[email protected]>
* | gallium: add fragment shader property for color writes to all buffers. (v2)Dave Airlie2010-12-243-2/+23
| | | | | | | | | | | | | | | | | | | | For GL fragColor semantics we need to tell the pipe drivers that the fragment shader color result is to be replicated to all bound color buffers, this adds the basic TGSI + documentation. v2: fix missing comma pointed out by Tilman on mesa-dev. Signed-off-by: Dave Airlie <[email protected]>
* | gallium: add new formats L16A16_UNORM, A16_UNORM, I16_UNORM, B2G3R3_UNORMMarek Olšák2010-12-231-0/+4
| |
* | gallivm: Disable MMX-disabling code on llvm-2.9.Vinson Lee2010-12-221-0/+2
| | | | | | | | | | | | | | The disable-mmx option was removed in llvm-2.9svn by revisions 122188 and 122189. Fixes FDO bug 32564.
* | gallivm: Fix 'cast from pointer to integer of different size' warning.Vinson Lee2010-12-221-1/+1
| | | | | | | | | | | | Fixes this GCC warning. lp_bld_const.h: In function 'lp_build_const_int_pointer': lp_bld_const.h:137: warning: cast from pointer to integer of different size
* | gallium: remove unused 'buf' parameter in pipe_buffer_unmapMarek Olšák2010-12-203-10/+9
| |
* | gallivm: Cleanup util_format_xxx_fetch_xxx call generation.José Fonseca2010-12-171-47/+24
| | | | | | | | | | | | | | No need to register function prototypes in the module now that we call the C function pointer directly -- less LLVM objects lying around. Limited testing with lp_test_format.
* | gallivm: fix copy&paste error from previous commitBrian Paul2010-12-161-1/+1
| | | | | | | | | | | | Fixes piglit regression, http://bugs.freedesktop.org/show_bug.cgi?id=32452 NOTE: This is a candidate for the 7.10 branch
* | gallivm: work around LLVM 2.6 bug when calling C functionsBrian Paul2010-12-162-11/+61
| | | | | | | | | | | | | | | | | | Create a constant int pointer to the C function, then cast it to the function's type. This avoids using trampoline code which seem to be inadvertantly freed by LLVM in some situations (which leads to segfaults). The root issue and work-around were found by José. NOTE: This is a candidate for the 7.10 branch
* | draw: s/varient/variant/Brian Paul2010-12-1610-110/+110
| |
* | gallium: properly check for src->dst blit compatibilitiesJerome Glisse2010-12-151-2/+2
| | | | | | | | | | | | Spotted by Christoph Bumiller & Jose Fonseca Signed-off-by: Jerome Glisse <[email protected]>
* | gallivm: do texture swizzle after shadow compareBrian Paul2010-12-142-4/+2
| | | | | | | | | | | | | | | | | | We need to swizzle after the shadow comparison so that the GL_DEPTH_MODE functionality is handled properly. This fixes all the piglit glsl-fs-shadow2d*.shader_test cases, except for glsl-fs-shadow2dproj-bias.shader_test which fails because of a bug in the GLSL compiler (fd.o 32395).
* | gallivm: store callbacks in a linked list rather than fixed size arrayBrian Paul2010-12-131-26/+28
| | | | | | | | Should fix http://bugs.freedesktop.org/show_bug.cgi?id=32308
* | tgsi: fix rbug compile errorMarek Olšák2010-12-111-1/+2
| | | | | | | | | | | | | | ../mesa/src/gallium/auxiliary/tgsi/tgsi_parse.h:139: error: dereferencing pointer ‘tokens.25’ does break strict-aliasing rules Signed-off-by: Marek Olšák <[email protected]>
* | draw/llvm: don't flush in vs_llvm_delete()Brian Paul2010-12-091-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes piglit glx-shader-sharing crash. When shaders are shared by multiple contexts, the shader's draw context pointer may point to a previously destroyed context. Dereferencing the context pointer will lead to a crash. In this case, simply removing the flushing code avoids the crash (the exec and sse shader paths don't flush here either). There's a deeper issue here, however, that needs examination. Shaders should not keep pointers to contexts since contexts might get destroyed at any time. NOTE: This is a candidate for the 7.10 branch (after this has been tested for a while).
* | draw/llvm: remove redundant commentBrian Paul2010-12-091-1/+0
| |
* | draw/llvm: remove extraneous conditionalBrian Paul2010-12-091-6/+4
| |
* | u_blitter: use util_is_format_compatible in the assertMarek Olšák2010-12-071-1/+2
| |
* | gallium/util: minor formatting fixesBrian Paul2010-12-061-3/+3
| |
* | init ps->context with util_surfaces_get and do_getXavier Chantry2010-12-053-12/+15
| | | | | | | | | | | | Signed-off-by: Xavier Chantry <[email protected]> Reviewed-by: Jakob Bornecrantz <wallbraker at gmail.com> Signed-off-by: Patrice Mandin <[email protected]>
* | nvfx: fixes after array textures mergeXavier Chantry2010-12-052-10/+25
| | | | | | | | | | Signed-off-by: Xavier Chantry <[email protected]> Signed-off-by: Patrice Mandin <[email protected]>
* | mesa: consolidate some compiler -D flagsBrian Paul2010-12-031-3/+0
| | | | | | | | | | -D__STDC_CONSTANT_MACROS and -D__STDC_LIMIT_MACROS are only needed for LLVM build.
* | gallivm: fix null builder pointersBrian Paul2010-12-031-3/+2
| |