summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
Commit message (Collapse)AuthorAgeFilesLines
* util: add u_bit_scan helperKeith Whitwell2011-09-221-7/+0
|
* llvmpipe: silence a pointer type warningBrian Paul2011-09-201-1/+1
|
* Update llvmpipe's gitignoreNicholas Miell2011-09-191-0/+1
| | | | Signed-off-by: Brian Paul <[email protected]>
* gallium: move clear paths from rgba to a pointer to a color union (v2)Dave Airlie2011-09-182-3/+4
| | | | | | | | | | | | | | | This moves the gallium interface for clears from using a pointer to 4 floats to a pointer to a union of float/unsigned/int values. Notes: 1. the value is opaque. 2. only when the value is used should it be interpretered according to the surface format it is going to be used with. 3. float clears on integer buffers and vice-versa are undefined. v2: fixed up vega and graw, dropped hunks that shouldn't have been in patch. Signed-off-by: Dave Airlie <[email protected]>
* llvmpipe: Remove dead lp_tile_shuffle_mask.py script.José Fonseca2011-09-141-32/+0
| | | | | Broken, and we now shuffle tiles with pack/unpack instructions, instead of shuffle masks.
* llvmpipe: add some null pointer checksBrian Paul2011-09-092-1/+35
| | | | | | | | | It's not clear if these are acceptable cases so issue a one-time warning in debug builds when we hit them. Fixes segfault in piglit fbo-mipmap-copypix test. Reviewed-by: José Fonseca <[email protected]>
* llvmpipe: add more restrict keywordsBrian Paul2011-08-241-4/+4
| | | | | | | | Put restrict in the function definitions to silence MSVC warnings about incompatible assignments in "func = lp_tile_foobar;" when func was declared with restrict keywords but the rhs function wasn't. Reviewed-by: Jose Fonseca <[email protected]>
* llvmpipe: Don't build lp_test_arit on MSVC.José Fonseca2011-08-181-1/+1
| | | | | Several issues due to expf/logf/etc either not being declared, or being defined as a macro.
* llvmpipe: snprintf->util_snprintf.José Fonseca2011-08-181-1/+2
| | | | For MSVC.
* llvmpipe: Add u_math.h include.José Fonseca2011-08-181-0/+1
| | | | Necessary on platforms with incomplete math.h
* llvmpipe: Unit tests for arithmetic functions.José Fonseca2011-07-223-2/+298
| | | | | | Conflicts: src/gallium/drivers/llvmpipe/SConscript
* llvmpipe: include LLVM version number in name stringBrian Paul2011-07-191-1/+3
|
* llvmpipe: fix build with LLVM 3.0svnTobias Droste2011-07-191-4/+15
| | | | | | | | | LLVM 3.0svn introduced a new type system. It defines a new way to create named structs and removes the (now not needed) LLVMInvalidateStructLayout function. See revision 134829 of LLVM. Signed-off-by: Tobias Droste <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* scons: make embedding orthogonal to the platformJosé Fonseca2011-06-172-2/+2
| | | | To enable embedding in platforms other than linux.
* llvmpipe: SSE2 fastpaths for b8g8r8x8 {un,}swizzleAdam Jackson2011-06-141-2/+66
| | | | | | | | Copy-and-paste from the bgra cases. The C paths attempt to avoid copying the 'x' channel, but it's harmless, you might as well. Good for about 5% in glxgears (740 to 780 fps). Signed-off-by: Adam Jackson <[email protected]>
* llvmpipe: use $(CXX) instead of g++ for linking.Stéphane Marchesin2011-06-061-1/+1
| | | | This allows setting the path to the C++ compiler.
* util_logbase2 takes and returns unsigned, not intMatt Turner2011-05-121-2/+2
| | | | | Signed-off-by: Matt Turner <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* Remove redundant util_unsigned_logbase2Matt Turner2011-05-121-1/+1
| | | | | | | util_logbase2 is exactly the same function. Signed-off-by: Matt Turner <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* llvmpipe: move active_query assignmentBrian Paul2011-04-281-2/+2
| | | | Fixes piglit regression.
* llvmpipe: move active_query assignment in lp_setup_begin_query()Brian Paul2011-04-281-2/+2
| | | | | | | | | | If we run out of bin memory and do an early return from lp_setup_begin_query() we'd omit setting the setup->active_query pointer. Then, when lp_setup_end_query() was later called, the assertion for setup->active_query == pq would fail. Moving the assigment in lp_setup_begin_query() avoids that. Reviewed-by: Jose Fonseca <[email protected]>
* gallium: add fallback for copying buffers to all driversMarek Olšák2011-04-211-0/+7
| | | | | | Just to keep drivers working. Reviewed-by: Jakob Bornecrantz <[email protected]>
* llvmpipe: Take the sampler view's first_level into account when sampling.Fabian Bieler2011-04-085-3/+13
|
* docs: replace llvmpipe/README with docs/llvmpipe.htmlBrian Paul2011-04-071-138/+0
|
* llvmpipe: document issue with LLVM 2.8 and earlier with AVXBrian Paul2011-04-071-0/+4
|
* gallium: set PIPE_CAP_MIXED_COLORBUFFER_FORMATS in some driversMarek Olšák2011-04-011-0/+1
|
* gallivm: Use LLVM MC disassembler, instead of udis86.José Fonseca2011-03-131-21/+2
| | | | | Included in LLVM 2.7+. Unlink udis86, should support all instructions that LLVM can emit.
* llvmpipe: fix warning: ‘t0’ may be used uninitialized in this functionMarek Olšák2011-03-121-1/+1
|
* gallium: remove flags from the flush functionMarek Olšák2011-03-118-38/+22
| | | | | | | | | | The drivers have been changed so that they behave as if all of the flags were set. This is already implicit in most hardware drivers and required for multiple contexts. Some state trackers were also abusing the PIPE_FLUSH_RENDER_CACHE flag to decide whether flush_frontbuffer should be called. New flag ST_FLUSH_FRONT has been added to st_api.h as a replacement.
* gallium: remove the geom_flags param from is_format_supportedMarek Olšák2011-03-111-2/+1
|
* gallium: cleanup fence_signalled and fence_finishMarek Olšák2011-03-112-7/+5
| | | | So that they don't have the driver-specific param and return type.
* gallium: kill is_resource_referencedMarek Olšák2011-03-114-10/+19
| | | | Only st/xorg used it and even incorrectly with regards to pipelined transfers.
* gallium: add timeout parameter to fence_finishMarek Olšák2011-03-082-2/+3
| | | | | This is a follow-up to the ARB_sync patch for st/mesa and completes the ARB_sync implementation.
* gallium: split CAP_INSTANCE_DRAWING into INSTANCEID and INSTANCE_DIVISORMarek Olšák2011-03-051-1/+2
| | | | | | | | ARB_instanced_arrays is a subset of D3D9. ARB_draw_instanced is a subset of D3D10. The point of this change is to allow D3D9-level drivers to enable ARB_instanced_arrays without ARB_draw_instanced.
* rgtc: llvmpipe/softpipe refuse RGTC until u_format has support.Dave Airlie2011-02-281-0/+5
| | | | | | So far I haven't implemented the u_format code for these. Signed-off-by: Dave Airlie <[email protected]>
* Check for out of memory when creating fenceAlan Hourihane2011-02-261-0/+3
|
* scons: Add aliases for the llvmpipe unit tests.José Fonseca2011-02-191-2/+7
| | | | | | Now one can simply do scons lp_test_format
* gallium: notify drivers about possible changes in user buffer contentsMarek Olšák2011-02-141-0/+3
| | | | Also implement the redefine_user_buffer hook in the drivers.
* llvmpipe: Use u_math's round.José Fonseca2011-02-111-12/+1
|
* llvmpipe: fix incorrect array index in image dump codeBrian Paul2011-01-311-1/+1
|
* llvmpipe: implement TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFSBrian Paul2011-01-191-3/+14
| | | | Fixes http://bugs.freedesktop.org/show_bug.cgi?id=33284
* llvmpipe: make sure binning is active when we begin/end a queryBrian Paul2011-01-181-0/+4
| | | | | | | This fixes a potential failure when a begin/end_query is the first thing to happen after flushing the scene. NOTE: This is a candidate for the 7.10 and 7.9 branches.
* llvmpipe: enable PIPE_CAP_INDEP_BLEND_FUNCBrian Paul2011-01-171-1/+1
| | | | | | | | | | The driver was saying that independend blend functions was not supported, but it really was. The driver was using the per-target independend blend factors but the state tracker was only setting the 0th one (per the Gallium spec). Fixes a piglit fbo-drawbuffers2-blend regression. See https://bugs.freedesktop.org/show_bug.cgi?id=33215
* Merge branch 'draw-instanced'Brian Paul2011-01-152-1/+4
|\ | | | | | | | | | | | | | | 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
| * llvmpipe: enable instanced drawing capBrian Paul2010-12-081-0/+2
| |
| * gallivm/llvmpipe: implement system values and instanceIDBrian Paul2010-12-081-1/+2
| |
* | gallium: drivers should reference vertex buffersMarek Olšák2011-01-062-2/+8
| | | | | | | | So that a state tracker can unreference them after set_vertex_buffers.
* | llvmpipe: Include p_compiler.h in lp_scene_queue.h.Vinson Lee2011-01-041-0/+2
| | | | | | | | Include p_compiler.h for boolean symbol.
* | llvmpipe: Include p_compiler.h in lp_perf.h.Vinson Lee2011-01-041-0/+1
| | | | | | | | Include p_compiler.h for int64_t symbol.
* | llvmpipe: Include missing headers in lp_bld_depth.hVinson Lee2011-01-041-0/+4
| | | | | | | | | | Include p_compiler.h for boolean symbol. Include p_state.h for pipe_stencil_state symbol.
* | llvmpipe: Include p_compiler.h in lp_bld_alpha.h.Vinson Lee2011-01-041-0/+2
| | | | | | | | | | Include p_compiler.h for boolean symbol. Add forward declaration for gallivm_state struct.