aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_const.h
Commit message (Collapse)AuthorAgeFilesLines
* gallivm: Updated lp_build_const_mask_aos to input number of channels.James Benton2012-11-281-4/+6
| | | | | | Also updated lp_build_const_mask_aos_swizzled to reflect this. Reviewed-by: Jose Fonseca <[email protected]>
* gallivm: Add a lp_build_const_func_pointer() helper.José Fonseca2012-05-021-0/+10
| | | | To be reused in all places where we want to call C code.
* gallivm: Cleanup/simplify lp_build_const_string_variable.José Fonseca2012-05-021-0/+3
| | | | | | | - Move to lp_bld_const where it belongs - Rename to lp_build_const_string - take the length from the argument (and don't count the zero terminator twice) - bitcast the constant to generic i8 *
* gallivm: Added lp_build_const_mask_aos_swizzledJames Benton2012-05-021-0/+7
| | | | | | | | | | Allows the creation of const aos masks which have the mask swizzled to match the correct format. Updated existing mask creation code to use the swizzled version where necessary (tgsi register masks and llvmpipe aos blending). Signed-off-by: José Fonseca <[email protected]>
* 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
* gallivm: work around LLVM 2.6 bug when calling C functionsBrian Paul2010-12-161-0/+18
| | | | | | | | | 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
* gallivm/llvmpipe: squash merge of the llvm-context branchBrian Paul2010-11-301-10/+20
| | | | | | | | | | | | | | 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
* gallivm: Pass condition masks as an unsigned bitmask.José Fonseca2010-09-051-1/+1
| | | | Much more convenient than boolean arrays.
* gallivm: added lp_build_const_int32() helperBrian Paul2010-07-201-0/+8
|
* gallivm: Add a lp_build_const_elem().José Fonseca2010-06-021-0/+4
|
* gallivm/llvmpipe: rename some constant building functionsBrian Paul2010-03-151-4/+2
|
* gallivm: fix up some #includesBrian Paul2010-03-151-1/+1
|
* gallivm/llvmpipe: rename os_llvm.h to lp_bld.hBrian Paul2010-03-151-1/+1
| | | | | | | The llvm wrapper wasn't really an OS thing. Use lp_bld.h for now but we eventually should rename/re-prefix all the files/functions in the gallivm/ directory.
* gallivm/llvmpipe: include os_llvm.h instead of llvm-c/Core.hBrian Paul2010-03-111-1/+1
|
* llvmpipe: export the tgsi translation code to a common layerZack Rusin2010-02-081-0/+108
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.