summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/gallivm
AgeCommit message (Collapse)Author
2010-03-13llvmpipe: Switch to PIPE_TEX_MIPFILTER_NONE when texture has no mipmaps.José Fonseca
2010-03-12gallivm: cube map sampling works nowBrian Paul
2010-03-12gallivm: fix bugs in nested if/then/else codegenBrian Paul
Quite a bit a hair pulling was involved...
2010-03-12gallivm: support non-vector float in lp_build_sgn()Brian Paul
2010-03-11gallivm: checkpoint WIP cubemap codeBrian Paul
2010-03-11gallivm: added lp_build_sum_vector()Brian Paul
2010-03-11gallivm: enable 3D texture samplingBrian Paul
2010-03-11gallivm/llvmpipe: replace 'int stride' with 'int row_stride[MAX_LEVELS]'Brian Paul
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.
2010-03-11gallivm/llvmpipe: include os_llvm.h instead of llvm-c/Core.hBrian Paul
2010-03-11gallivm: fix some bugs on the 1D texture pathsBrian Paul
2010-03-11gallivm: include tgsi_dump.h to silence warningBrian Paul
2010-03-11gallivm: move declarations to silence unused var warningsBrian Paul
2010-03-11gallivm: Use bitmasks for scalar masks.José Fonseca
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.
2010-03-11gallivm: Handle scalar types in lp_build_*_type.José Fonseca
2010-03-10gallivm: overhaul of texture sampling codeBrian Paul
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.
2010-03-10gallivm: handle scalar floats in lp_build_floor() and lp_build_iround()Brian Paul
2010-03-10gallivm: constant building for scalar zeroBrian Paul
2010-03-10gallivm: implement bilinear sampling with nearest mipmappingBrian Paul
Time to start consolidating some code...
2010-03-10gallivm: remove debug code. nearest minification works now.Brian Paul
2010-03-10gallivm: simplify conditional branchingJose Fonseca
Instead of testing each component individually, we can test the entire vector at once.
2010-03-10gallivm: properly test the if condition and branch to the proper labelZack Rusin
makes loops work
2010-03-10gallivm: implement loopsZack Rusin
2010-03-10llvmpipe: Finally found a way to do vector comparisons without using intrinsics.José Fonseca
Only works well with LLVM >= 2.7
2010-03-09gallivm: checkpoint: nearest mipmap filteringBrian Paul
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.
2010-03-08llvmpipe/gallivm: checkpoint: array of pointers to mipmap levelsBrian Paul
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.
2010-03-08gallivm: fix a crash by making sure we set the has_mask flag correctlyZack Rusin
2010-03-08Merge branch '7.8'Brian Paul
2010-03-06gallivm: Initialize variables for default cases.Vinson Lee
Fixes use of uninitialized variables in non-debug builds.
2010-03-06gallivm: Add some notes about sampler static state construction.José Fonseca
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.
2010-03-06gallivm: Answer question/comment.José Fonseca
This reverts commit 71c05689528d7987bfb99c3afe04e456887bc7b7.
2010-03-06gallivm: Add a placeholder for TGSI_FILE_PREDICATE registers.José Fonseca
2010-03-06gallivm: Generate valid IR for LLVM 2.7.José Fonseca
The signatures for pack intrinsics were made more consistent in this version.
2010-03-05gallivm: checkpoint: code gen for mipmap selectionBrian Paul
2010-03-05gallivm: added methods for getting texture depth, num mipmap levelsBrian Paul
2010-03-05gallivm: checkpoint: texture LOD computation code genBrian Paul
2010-03-05gallivm: added field for sampler lodBrian Paul
2010-03-05gallivm: minor arithmetic improvementsBrian Paul
2010-03-05gallivm: implement non-normalized texture wrap modesBrian Paul
Note that only the PIPE_TEX_WRAP_CLAMP,CLAMP_TO_EDGE,CLAMP_TO_BORDER modes work with non-normalized texcoords.
2010-03-04gallivm: implement texture border color, plus tweaks to some wrap modesBrian Paul
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.
2010-03-04gallivm: added texture border_color fieldBrian Paul
2010-03-04gallivm: added question/commentBrian Paul
2010-03-04gallivm: commentsBrian Paul
2010-03-04gallivm: rework and implement more texture wrap modesBrian Paul
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.
2010-03-04gallivm: added lp_build_fract()Brian Paul
2010-03-04gallivm: added lp_build_set_sign()Brian Paul
2010-03-04gallivm: added lp_build_negate()Brian Paul
2010-03-04gallivm: clarify unsigned vs. signed integer type constructionBrian Paul
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.
2010-03-03gallivm: Centralize initialization. Fix stack alignment issues on Windows.José Fonseca
2010-03-03gallivm: Rename lp_bld_misc -> lp_bld_init.José Fonseca
2010-03-02llvmpipe: improve based on review from Jose and fix else clausesZack Rusin
else was broken in the outter most else statemants, plus the code didn't need an inverted mask to compute the inverse of the current condition.