summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
Commit message (Collapse)AuthorAgeFilesLines
* gallivm: fix incorrect clamp in lp_build_linear_mip_levels()Brian Paul2010-03-151-1/+1
|
* gallivm: fix incorrect floor(), itrunc()Brian Paul2010-03-151-2/+5
| | | | | | | | LLVMBuildFPTrunc() should be used for double->float conversion, not float->int conversion. There should be a better way to compute floor(), ceil(), etc that doesn't involve float->int->float conversion.
* llvmpipe: Switch to PIPE_TEX_MIPFILTER_NONE when texture has no mipmaps.José Fonseca2010-03-131-1/+5
|
* gallivm: cube map sampling works nowBrian Paul2010-03-121-22/+154
|
* gallivm: fix bugs in nested if/then/else codegenBrian Paul2010-03-121-9/+17
| | | | Quite a bit a hair pulling was involved...
* gallivm: support non-vector float in lp_build_sgn()Brian Paul2010-03-121-6/+21
|
* gallivm: checkpoint WIP cubemap codeBrian Paul2010-03-111-1/+90
|
* gallivm: added lp_build_sum_vector()Brian Paul2010-03-112-0/+35
|
* gallivm: enable 3D texture samplingBrian Paul2010-03-111-0/+5
|
* gallivm/llvmpipe: replace 'int stride' with 'int row_stride[MAX_LEVELS]'Brian Paul2010-03-112-12/+44
| | | | | | | The stride depends on the mipmap level. Rename to row_stride to distinguish from img_stride for 3D textures. Fixes incorrect texel addressing in small mipmap levels.
* gallivm/llvmpipe: include os_llvm.h instead of llvm-c/Core.hBrian Paul2010-03-1120-20/+20
|
* gallivm: fix some bugs on the 1D texture pathsBrian Paul2010-03-111-8/+11
|
* gallivm: include tgsi_dump.h to silence warningBrian Paul2010-03-111-0/+1
|
* gallivm: move declarations to silence unused var warningsBrian Paul2010-03-111-2/+6
|
* gallivm: Use bitmasks for scalar masks.José Fonseca2010-03-111-4/+11
| | | | | | | | | We could use single 1 bit conditions for scalar masks, but a lot of code expects masks. The compiler easily optimzes away masks extensions/truncations so consistency is preferable. We can revisit this when LLVM backends have more support for vector conditions.
* gallivm: Handle scalar types in lp_build_*_type.José Fonseca2010-03-111-2/+11
|
* gallivm: overhaul of texture sampling codeBrian Paul2010-03-103-250/+420
| | | | | | | | | The new lp_build_sample_general() function will handle all sampling modes for all texture types. Still incomplete, but a few additional sampling modes are now supported. 1D textures should work and most of the code for 3D textures is in place. No support for cube maps yet. No support for different min/mag filters.
* gallivm: handle scalar floats in lp_build_floor() and lp_build_iround()Brian Paul2010-03-101-0/+15
|
* gallivm: constant building for scalar zeroBrian Paul2010-03-101-2/+10
|
* gallivm: implement bilinear sampling with nearest mipmappingBrian Paul2010-03-101-0/+79
| | | | Time to start consolidating some code...
* gallivm: remove debug code. nearest minification works now.Brian Paul2010-03-101-6/+3
|
* gallivm: simplify conditional branchingJose Fonseca2010-03-101-21/+8
| | | | | Instead of testing each component individually, we can test the entire vector at once.
* gallivm: properly test the if condition and branch to the proper labelZack Rusin2010-03-101-1/+3
| | | | makes loops work
* gallivm: implement loopsZack Rusin2010-03-103-10/+153
|
* llvmpipe: Finally found a way to do vector comparisons without using intrinsics.José Fonseca2010-03-101-6/+26
| | | | Only works well with LLVM >= 2.7
* gallivm: checkpoint: nearest mipmap filteringBrian Paul2010-03-095-292/+601
| | | | | | | | | The LOD is computed from texcoord partial derivatives and used to select a mipmap level. Still some bugs in texel fetching. Lots of rough edges and unfinished parts but the basics are in place. Lots of changes to the lp_bld_arit.c code to support non-vector/scalar datatypes.
* llvmpipe/gallivm: checkpoint: array of pointers to mipmap levelsBrian Paul2010-03-083-27/+48
| | | | | | | Change the texture data_ptr from just a single image pointer to an array of image pointers, indexed by mipmap level. We'll use this for mipmap filtering. For now, the mipmap level is hard-coded to zero.
* gallivm: fix a crash by making sure we set the has_mask flag correctlyZack Rusin2010-03-081-2/+1
|
* Merge branch '7.8'Brian Paul2010-03-081-0/+4
|\
| * gallivm: Initialize variables for default cases.Vinson Lee2010-03-061-0/+4
| | | | | | | | Fixes use of uninitialized variables in non-debug builds.
* | gallivm: Add some notes about sampler static state construction.José Fonseca2010-03-061-1/+17
| | | | | | | | | | | | | | Recover some logic to make state canonical, although it is admittedly very shy compared with what could be done. We really need an helper module to make state canonical.
* | gallivm: Answer question/comment.José Fonseca2010-03-061-1/+11
| | | | | | | | This reverts commit 71c05689528d7987bfb99c3afe04e456887bc7b7.
* | gallivm: Add a placeholder for TGSI_FILE_PREDICATE registers.José Fonseca2010-03-061-0/+5
| |
* | gallivm: Generate valid IR for LLVM 2.7.José Fonseca2010-03-061-1/+14
|/ | | | | The signatures for pack intrinsics were made more consistent in this version.
* gallivm: checkpoint: code gen for mipmap selectionBrian Paul2010-03-051-0/+65
|
* gallivm: added methods for getting texture depth, num mipmap levelsBrian Paul2010-03-051-0/+12
|
* gallivm: checkpoint: texture LOD computation code genBrian Paul2010-03-051-3/+126
|
* gallivm: added field for sampler lodBrian Paul2010-03-052-4/+6
|
* gallivm: minor arithmetic improvementsBrian Paul2010-03-051-9/+12
|
* gallivm: implement non-normalized texture wrap modesBrian Paul2010-03-051-39/+68
| | | | | Note that only the PIPE_TEX_WRAP_CLAMP,CLAMP_TO_EDGE,CLAMP_TO_BORDER modes work with non-normalized texcoords.
* gallivm: implement texture border color, plus tweaks to some wrap modesBrian Paul2010-03-041-23/+129
| | | | | | | | | | | The progs/test/texwrap demo looks pretty good, but there are still some tiny differences from softpipe. There may be a sub-pixel texcoord interpolation error somewhere. There's some room for optimization. Many of the wrap modes compute intermediate values that are constant for the texture size (see the min/max values). These could be computed earlier and stored somewhere for later use.
* gallivm: added texture border_color fieldBrian Paul2010-03-042-0/+10
|
* gallivm: added question/commentBrian Paul2010-03-041-0/+1
|
* gallivm: commentsBrian Paul2010-03-041-0/+5
|
* gallivm: rework and implement more texture wrap modesBrian Paul2010-03-041-60/+448
| | | | | | | | | All the texture wrap modes are now implemented for linear and nearest sampling. However, texture border color is not yet supported so some wrap modes will produce int coords outside the texture bounds. We'll get garbage values insted of the texture border color for now.
* gallivm: added lp_build_fract()Brian Paul2010-03-042-0/+17
|
* gallivm: added lp_build_set_sign()Brian Paul2010-03-042-0/+39
|
* gallivm: added lp_build_negate()Brian Paul2010-03-042-0/+12
|
* gallivm: clarify unsigned vs. signed integer type constructionBrian Paul2010-03-043-19/+43
| | | | | | The lp_int_type() function was creating an unsigned type. So rename that function to lp_uint_type() and create new lp_int_type() that creates a signed type.
* gallivm: Centralize initialization. Fix stack alignment issues on Windows.José Fonseca2010-03-032-35/+20
|