summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/gallivm/lp_bld_conv.c
AgeCommit message (Collapse)Author
2011-02-19gallivm: Use simple scaling plus casting in more unorm->float cases.José Fonseca
2010-12-02gallivm/llvmpipe: remove lp_build_context::builderBrian Paul
The field was redundant. Use the gallivm->builder value instead.
2010-11-30gallivm/llvmpipe: squash merge of the llvm-context branchBrian Paul
This branch defines a gallivm_state structure which contains the LLVMBuilderRef, LLVMContextRef, etc. All data structures built with this object can be periodically freed during a "garbage collection" operation. The gallivm_state object has to be passed to most of the builder functions where LLVMBuilderRef used to be used. Conflicts: src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c src/gallium/drivers/llvmpipe/lp_state_setup.c
2010-10-13gallivm: More accurate float -> 24bit & 32bit unorm conversion.José Fonseca
2010-10-13gallivm: only use lp_build_conv 4x4f -> 1x16 ub fastpath with sse2Roland Scheidegger
This is relying on lp_build_pack2 using the sse2 pack intrinsics which handle clamping. (Alternatively could have make it use lp_build_packs2 but it might not even produce more efficient code than not using the fastpath in the first place.)
2010-10-09gallivm: simpler uint8->float conversionsKeith Whitwell
LLVM seems to finds it easier to reason about these than our mantissa-manipulation code.
2010-10-09gallivm: make use of new iround code in lp_bld_conv.Roland Scheidegger
Only requires sse2 now.
2010-10-08gallivm: Remove unnecessary header.Vinson Lee
2010-10-08gallivm: round rather than truncate in new 4x4f->1x16ub conversion pathKeith Whitwell
2010-10-08gallivm: Use the wrappers for SSE pack intrinsics.José Fonseca
Fixes assertion failures on LLVM 2.6.
2010-10-08gallivm: special case conversion 4x4f to 1x16ubKeith Whitwell
Nice reduction in the number of operations required for final color output in many shaders.
2010-08-09gallivm: Always use floating-point operators for floating-point typesnobled
This fixes the assert added in LLVM 2.8: assert(getType()->isIntOrIntVectorTy() && "Tried to create an integer operation on a non-integer type!") But it also fixes some subtle bugs, since we should've been doing this since LLVM 2.6 anyway. Includes a modified patch from steckdenis@yahoo.fr for the FNeg instructions in emit_fetch(); thanks for pointing those out. http://bugs.freedesktop.org/29404 http://bugs.freedesktop.org/29407 Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-07-02gallivm: Check inputs/outputs in lp_build_conv()José Fonseca
2010-07-02gallivm: Fix 4 x unorm8 -> 4 x float conversion.José Fonseca
Also fix the test.
2010-07-01gallivm: Allow to conversions to/from registers of different sizes.José Fonseca
Allow for example to convert from 4 x float32 to 4 x unorm8 and vice versa. Uses code and ideas from Brian Paul.
2010-03-15gallivm/llvmpipe: rename some constant building functionsBrian Paul
2010-02-08llvmpipe: export the tgsi translation code to a common layerZack Rusin
the llvmpipe tgsi translation is a lot more complete than what was in gallivm so replacing the latter with the former. this is needed since the draw llvm paths will use the same code. effectively the proven llvmpipe code becomes gallivm.