Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-03-18 | gallivm: fix broken INCR/DECR stencil modes | Brian Paul | |
We were mistakenly using the wrong data type for stencil values before. | |||
2010-03-18 | gallivm/llvmpipe: added lp_rast_shader_inputs::facing and pass through | Brian Paul | |
The triangle rasterizer sets this field to indicate front/back-facing. It gets passed into the generated fragment code as another parameter. Used now for stencil front/back selection but will also be used for fragment shaders in general (see TGSI_SEMANTIC_FACE). With this commit two-sided stenciling mostly works but there's still a bug or two... | |||
2010-03-18 | gallivm/llvmpipe: simplify front/back stencil ref value handling | Brian Paul | |
Instead of passing an array, just pass two scalar values. | |||
2010-03-18 | gallivm: checkpoint WIP two-sided stencil test | Brian Paul | |
2010-03-17 | gallivm/llvmpipe: basic stencil testing works | Brian Paul | |
Most stencil demos look OK (modulo some unrelated rendering glitches). Only single-sided stencil test works at this point. There are probably some bugs to be found... | |||
2010-03-17 | gallivm: added lp_build_andc() | Brian Paul | |
2010-03-17 | gallivm/llvmpipe: more asst changes for stencil testing | Brian Paul | |
2010-03-17 | gallivm/llmvpipe: pass stencil refs state into z/stencil build code | Brian Paul | |
2010-03-15 | gallivm: checkpoint: stencil test code | Brian Paul | |
2010-03-15 | gallivm/llvmpipe: rename some constant building functions | Brian Paul | |
2010-03-15 | gallivm: fix up some #includes | Brian Paul | |
2010-03-15 | gallivm/llvmpipe: rename os_llvm.h to lp_bld.h | Brian Paul | |
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. | |||
2010-03-15 | gallivm: fix typo/bug in lp_build_sgn() | Brian Paul | |
We were never returning -1 as a result. This fixes some inverted/flipped faces with cube mapping. | |||
2010-03-15 | gallivm: add min_lod==max_lod special-case code in lp_build_lod_selector() | Brian Paul | |
When min_lod==max_lod we don't need to go through all the work of computing the lod from partial derivatives. This is hit by the mipmap generation utility code. | |||
2010-03-15 | gallivm: asst clean-ups, comments, etc. | Brian Paul | |
2010-03-15 | gallivm: implement minification/magnification selection | Brian Paul | |
Use the LOD value to determine whether to use the minification vs. magnification filter. All mipmap sampling modes work now. | |||
2010-03-15 | gallivm: fix incorrect clamp in lp_build_linear_mip_levels() | Brian Paul | |
2010-03-15 | gallivm: fix incorrect floor(), itrunc() | Brian Paul | |
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. | |||
2010-03-13 | llvmpipe: Switch to PIPE_TEX_MIPFILTER_NONE when texture has no mipmaps. | José Fonseca | |
2010-03-12 | gallivm: cube map sampling works now | Brian Paul | |
2010-03-12 | gallivm: fix bugs in nested if/then/else codegen | Brian Paul | |
Quite a bit a hair pulling was involved... | |||
2010-03-12 | gallivm: support non-vector float in lp_build_sgn() | Brian Paul | |
2010-03-11 | gallivm: checkpoint WIP cubemap code | Brian Paul | |
2010-03-11 | gallivm: added lp_build_sum_vector() | Brian Paul | |
2010-03-11 | gallivm: enable 3D texture sampling | Brian Paul | |
2010-03-11 | gallivm/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-11 | gallivm/llvmpipe: include os_llvm.h instead of llvm-c/Core.h | Brian Paul | |
2010-03-11 | gallivm: fix some bugs on the 1D texture paths | Brian Paul | |
2010-03-11 | gallivm: include tgsi_dump.h to silence warning | Brian Paul | |
2010-03-11 | gallivm: move declarations to silence unused var warnings | Brian Paul | |
2010-03-11 | gallivm: 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-11 | gallivm: Handle scalar types in lp_build_*_type. | José Fonseca | |
2010-03-10 | gallivm: overhaul of texture sampling code | Brian 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-10 | gallivm: handle scalar floats in lp_build_floor() and lp_build_iround() | Brian Paul | |
2010-03-10 | gallivm: constant building for scalar zero | Brian Paul | |
2010-03-10 | gallivm: implement bilinear sampling with nearest mipmapping | Brian Paul | |
Time to start consolidating some code... | |||
2010-03-10 | gallivm: remove debug code. nearest minification works now. | Brian Paul | |
2010-03-10 | gallivm: simplify conditional branching | Jose Fonseca | |
Instead of testing each component individually, we can test the entire vector at once. | |||
2010-03-10 | gallivm: properly test the if condition and branch to the proper label | Zack Rusin | |
makes loops work | |||
2010-03-10 | gallivm: implement loops | Zack Rusin | |
2010-03-10 | llvmpipe: Finally found a way to do vector comparisons without using intrinsics. | José Fonseca | |
Only works well with LLVM >= 2.7 | |||
2010-03-09 | gallivm: checkpoint: nearest mipmap filtering | Brian 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-08 | llvmpipe/gallivm: checkpoint: array of pointers to mipmap levels | Brian 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-08 | gallivm: fix a crash by making sure we set the has_mask flag correctly | Zack Rusin | |
2010-03-08 | Merge branch '7.8' | Brian Paul | |
2010-03-06 | gallivm: Initialize variables for default cases. | Vinson Lee | |
Fixes use of uninitialized variables in non-debug builds. | |||
2010-03-06 | gallivm: 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-06 | gallivm: Answer question/comment. | José Fonseca | |
This reverts commit 71c05689528d7987bfb99c3afe04e456887bc7b7. | |||
2010-03-06 | gallivm: Add a placeholder for TGSI_FILE_PREDICATE registers. | José Fonseca | |
2010-03-06 | gallivm: Generate valid IR for LLVM 2.7. | José Fonseca | |
The signatures for pack intrinsics were made more consistent in this version. |