Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-07-02 | gallivm: Move gather functions to its own module. | José Fonseca | |
They need to grow, and they provide basic functionality which is not specific to sampling. | |||
2010-06-02 | gallivm: Make lp_build_sample_wrap_int usage more accurate. | José Fonseca | |
Fixes mesa texwrap demo border with GL_CLAMP. | |||
2010-06-02 | gallivm: Don't use reciprocate in lp_build_sample_wrap_linear(). | José Fonseca | |
Always clamp the scaled coordinates. | |||
2010-06-02 | gallivm: Avoid fp arithmetic in lp_build_sample_wrap_nearest(). | José Fonseca | |
2010-06-02 | gallivm: Don't use lp_build_sample_wrap_nearest() | José Fonseca | |
Always clamp with scaled coordinates. | |||
2010-05-13 | llvmpipe: silence uninitialized var warnings | Brian Paul | |
2010-05-12 | gallivm: rename texel result param | Brian Paul | |
Be clear that this parameter returns four texel channel results. | |||
2010-05-08 | gallivm: Fix mipfiltering with negative lod bias. | José Fonseca | |
In particular, don't use the clamped lod to compute level + 1, or lod in [-1, 0] range will actually interpolate with level 1. This makes Mipfilter DCT pass 100%. | |||
2010-05-08 | gallivm: Centralize SoA swizzling into a single place. | José Fonseca | |
2010-05-04 | gallivm: Proper implementation of TXL opcode. | José Fonseca | |
2010-05-04 | gallivm: Fix several glitches introduced in the prev commit. | José Fonseca | |
2010-05-04 | gallivm: Implement TXD. | José Fonseca | |
2010-04-30 | llvmpipe: fix out-of-bounds texture sampling | Brian Paul | |
If we're using a wrap mode in which border color sampling is possible it means that texcoords may be outside of the texture image bounds. Fetching the texel may result in a segfault. Use the 'use_border' variable to catch such texcoords and replace the texel offset with zero (which will be in bounds). Fixes segfault in Lightsmark demo, fd.o bug 27877. | |||
2010-04-30 | llvmpipe: added lp_build_sample_nop() for debugging | Brian Paul | |
2010-04-29 | gallivm: add some assertions in special-case sampler code | Brian Paul | |
2010-04-26 | llvmpipe: Respect pipe_sampler_view::swizzle_r/g/b/a | José Fonseca | |
This allows u_sampler_view_default_dx9_template to do its magic on DX9. | |||
2010-04-24 | llvmpipe: Implement shader bias. | José Fonseca | |
Fixes glean glsl1 test: texture2D(), with bias. | |||
2010-04-19 | gallivm: pass 3D texture stride as an array | Brian Paul | |
This should have been included with the previous commit. | |||
2010-04-16 | gallivm: init some vars to silence warnings | Brian Paul | |
2010-04-16 | gallivm: remove some old stuff | Brian Paul | |
2010-04-06 | gallivm: Fallback to calling util_format_description::fetch_float for any ↵ | José Fonseca | |
format we can't code LLVM IR directly. | |||
2010-03-31 | util: Generalize lp_format_is_rgba8 into util_format_is_rgba8_variant. | José Fonseca | |
2010-03-15 | gallivm/llvmpipe: rename some constant building functions | Brian Paul | |
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-12 | gallivm: cube map sampling works now | Brian Paul | |
2010-03-11 | gallivm: checkpoint WIP cubemap code | 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: fix some bugs on the 1D texture paths | Brian Paul | |
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: 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-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-06 | gallivm: Initialize variables for default cases. | Vinson Lee | |
Fixes use of uninitialized variables in non-debug builds. | |||
2010-03-05 | gallivm: checkpoint: code gen for mipmap selection | Brian Paul | |
2010-03-05 | gallivm: checkpoint: texture LOD computation code gen | Brian Paul | |
2010-03-05 | gallivm: minor arithmetic improvements | Brian Paul | |
2010-03-05 | gallivm: implement non-normalized texture wrap modes | Brian Paul | |
Note that only the PIPE_TEX_WRAP_CLAMP,CLAMP_TO_EDGE,CLAMP_TO_BORDER modes work with non-normalized texcoords. | |||
2010-03-04 | gallivm: implement texture border color, plus tweaks to some wrap modes | Brian 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-04 | gallivm: rework and implement more texture wrap modes | Brian 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-04 | gallivm: clarify unsigned vs. signed integer type construction | Brian 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-02-14 | gallivm: s/debug_dump_/util_dump_/ | José Fonseca | |
2010-02-09 | gallium: Remove prefilter member from pipe_sampler_state struct. | Michal Krol | |
2010-02-08 | llvmpipe: export the tgsi translation code to a common layer | Zack 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. |