summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
AgeCommit message (Collapse)Author
2010-04-19gallium/draw: use correct rasterization state for wide/AA points/linesBrian Paul
When points or lines are decomposed into triangles, we need to be sure to disable polygon culling, stippling, "un-filled" modes, etc. This patch sets the rasterization state to disable those things prior to drawing points/lines with triangles, then restores the previous state afterward. The new piglit point-no-line-cull test checks this problem & solution.
2010-04-03util: Use GCC atomic bultins on GCC 4.1 and higher only.Vinson Lee
2010-03-12Grammar and spelling fixesJeff Smith
Signed-off-by: Jeff Smith <whydoubt@yahoo.com> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-03-06gallivm: Initialize variables for default cases.Vinson Lee
Fixes use of uninitialized variables in non-debug builds.
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-03util: Remove PIPE_FORMAT_R8G8B8X8_SNORM information.José Fonseca
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-02Merge branch 'gallium-format-cleanup'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.
2010-03-02Merge branch 'gallium-no-rhw-position'Michal Krol
Conflicts: src/gallium/drivers/r300/r300_blit.c src/gallium/drivers/r300/r300_emit.c src/gallium/drivers/r300/r300_state_derived.c
2010-03-02util: Tweak comment for D3D10-like formats.José Fonseca
2010-03-02util/blitter: Fix the viewport transformation for Z coordinatesMarek Olšák
When clearing buffers, the depth is specified in the range [0, 1] and should be passed through blitter "as is".
2010-03-01llvmpipe: implement some control-flowZack Rusin
implements if/else/endif constructs and lays down the code for looping and others. we create a conditional execution mask which decides which of the four inputs are enabled for any store. it's used only if an execution mask is present, otherwise we go through a direct store.
2010-03-01translate: Rename pipe formats.José Fonseca
2010-03-01draw: Rename pipe formats.José Fonseca
2010-03-01util: Rename pipe formats.José Fonseca
2010-03-01util: Remove PIPE_FORMAT_A8B8G8R8_SNORM.José Fonseca
2010-03-01util: Generate linear<->sRGB conversion tables.Michal Krol
2010-03-01tgsi: Cleanup exec code for CLAMP, CMP and CND.Michal Krol
2010-03-01util: Fix PIPE_FORMAT_R8G8B8_SRGB swizzles.José Fonseca
The only user of PIPE_FORMAT_R8G8B8_SRGB is mesa, which per src/mesa/main/texstore.c interprets it as R8 G8 B8 and not the other way around.
2010-03-01util: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate.José Fonseca
2010-03-01util: Fix PIPE_FORMAT_R8G8B8_UNORM description and notes.José Fonseca
There is actually no ambiguity in use -- it is always used as R8 G8 B8
2010-03-01util: Fix u_blitter setup code after bypass_vs_clip_and_viewport removal.Michal Krol
Not tested.
2010-03-01util: Remove inexisting formats.José Fonseca
Can't find these formats used in any state tracker or any API. For some of these probably the reverse notation was meant, for which formats already exist.
2010-03-01util: A few more links for D3D formats.José Fonseca
2010-03-01util: A few more todo marks.José Fonseca
2010-03-01util: More documentation for u_format.csvJosé Fonseca
2010-03-01util: Tweak comments regarding R8G8B8A8/X8_UNORM.José Fonseca
2010-03-01python: Don't mention deprecated drivers=trace option.José Fonseca
Now trace always built.
2010-02-27util: Fix X8/A8B8G8R8_SNORM's swizzle.José Fonseca
2010-02-26gallium: define GENERATED auxiliary filesBrian Paul
Don't need special default dependency on u_format_pack.h anymore.
2010-02-26util: Define SRGB's channels as normalized.José Fonseca
A better approximation than uscaled...
2010-02-26util: Code generate functions to pack and unpack a single pixel.José Fonseca
Should work correctly for all pixel formats except SRGB formats. Generated code made much simpler by defining the pixel format as a C structure. For example this is the generated structure for PIPE_FORMAT_B6UG5SR5S_NORM: union util_format_b6ug5sr5s_norm { uint16_t value; struct { int r:5; int g:5; unsigned b:6; } chan; }; Not used everywhere yet because it seems compiled code is slower than bitshift arithmetic by some misterious reason. So we should generate bitshift arithmetic at least for the simple UNORM pixel formats.
2010-02-26util: Factor some code into u_format_parse.pyJosé Fonseca
2010-02-26util: Add util_bswap16.José Fonseca