summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
AgeCommit message (Collapse)Author
2010-10-09gallivm: faster iround implementation for sse2Roland Scheidegger
sse2 supports round to nearest directly (or rather, assuming default nearest rounding mode in MXCSR). Use intrinsic to use this rather than round (sse41) or bit manipulation whenever possible.
2010-10-09gallivm: fix trunc/itrunc commentRoland Scheidegger
trunc of -1.5 is -1.0 not 1.0...
2010-10-08gallivm: Remove unnecessary header.Vinson Lee
2010-10-08gallivm: Help for combined extraction and broadcasting.José Fonseca
Doesn't change generated code quality, but saves some typing.
2010-10-08llvmpipe: First minify the texture size, then broadcast.José Fonseca
2010-10-08gallivm: Move into the as much of the second level code as possible.José Fonseca
Also, pass more stuff trhough the sample build context, instead of arguments.
2010-10-08gallivm: Warn when doing inefficient integer comparisons.José Fonseca
2010-10-08gallivm: round rather than truncate in new 4x4f->1x16ub conversion pathKeith Whitwell
2010-10-08gallivm: Use the wrappers for SSE pack intrinsics.José Fonseca
Fixes assertion failures on LLVM 2.6.
2010-10-08gallivm: special case conversion 4x4f to 1x16ubKeith Whitwell
Nice reduction in the number of operations required for final color output in many shaders.
2010-10-08gallivm: Implement brilinear filtering.José Fonseca
2010-10-08gallivm: Fix copy'n'paste typo in previous commit.José Fonseca
2010-10-08gallivm: Clamp mipmap level and zero mip weight simultaneously.José Fonseca
2010-10-08gallivm: Use lp_build_ifloor_fract for lod computation.José Fonseca
Forgot this one before.
2010-10-08gallivm: Don't compute the second mipmap level when frac(lod) == 0José Fonseca
2010-10-08gallivm: Simplify lp_build_mipmap_level_sizes' interface.José Fonseca
2010-10-08gallivm: Do not do mipfiltering when magnifying.José Fonseca
If lod < 0, then invariably follows that ilevel0 == ilevel1 == 0.
2010-10-07gallivm: Vectorize the rho computation.José Fonseca
2010-10-06util: Cleanup util_pack_z_stencil and friends.José Fonseca
- Handle PIPE_FORMAT_Z32_FLOAT packing correctly. - In the integer version z shouldn't be passed as as double. - Make it clear that the integer versions should only be used for masks. - Make integer type sizes explicit (uint32_t for now, although uint64_t will be necessary later to encode f32_s8_x24).
2010-10-06gallivm: Compute lod as integer whenever possible.José Fonseca
More accurate/faster results for PIPE_TEX_MIPFILTER_NEAREST. Less FP <-> SI conversion overall.
2010-10-06gallivm: Only apply min/max_lod when necessary.José Fonseca
2010-10-06gallivm: don't apply zero lod_biasKeith Whitwell
2010-10-06gallivm: Combined ifloor & fract helper.José Fonseca
The only way to ensure we don't do redundant FP <-> SI conversions.
2010-10-06gallivm: Fast implementation of iround(log2(x))José Fonseca
Not tested yet, but should be correct.
2010-10-06gallivm: Use a faster (and less accurate) log2 in lod computation.José Fonseca
2010-10-06gallivm: Take the type signedness in consideration in round/ceil/floor.José Fonseca
2010-10-05pb: fix numDelayed accountingDave Airlie
we weren't decreasing when removing from the list.
2010-10-05pb: don't keep checking buffers after first busyDave Airlie
If we assume busy buffers are added to the list in order its unlikely we'd fine one after the first busy one that isn't busy.
2010-09-30draw: check for null sampler pointersBrian Paul
http://bugs.freedesktop.org/show_bug.cgi?id=30516
2010-09-30gallivm: added some commentsBrian Paul
2010-09-30Revert "Prefer intrinsics to handrolled atomic ops."Tom Fogal
This reverts commit 5f66b340aa49c6bc8d0acb2d1a6f8e9a7ef2cb2e, quickly fixing 30514.
2010-09-30Prefer intrinsics to handrolled atomic ops.Tom Fogal
2010-09-30Implement x86_64 atomics for compilers w/o intrinsics.Tom Fogal
Really old gcc's (3.3, at least) don't have support for the intrinsics we need. This implements a fallback for that case.
2010-09-30gallivm: check for level=0 case in lp_build_minify()Brian Paul
This lets us avoid the shift and max() operations.
2010-09-30gallivm: More comprehensive border usage logic.José Fonseca
2010-09-30gallium/util: remove duplicated includeNicolas Kaiser
Remove duplicated include. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-30gallium/rtasm: remove duplicated includeNicolas Kaiser
Remove duplicated include. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-09-29gallivm: Use SSE4.1's ROUNDSS/ROUNDSD for scalar rounding.José Fonseca
2010-09-29draw: pass sampler state down to llvm jit stateBrian Paul
Fixes a regression caused from the change to make min/max lod dynamic state. https://bugs.freedesktop.org/show_bug.cgi?id=30437
2010-09-27llvmpipe: fix swizzling of texture border colorBrian Paul
The pipe_sampler_view's swizzle terms also apply to the texture border color. Simply move the apply_sampler_swizzle() call after we fetch the border color. Fixes many piglit texwrap failures.
2010-09-27ureg: support centroid interpolationLuca Barbieri
2010-09-26util/u_blitter: fix leakJoakim Sindholt
2010-09-25gallivm: fix repeat() function for NPOT texturesBrian Paul
The trick of casting the coord to an unsigned value only works for POT textures. Add a bias instead. This fixes a few piglit texwrap failures.
2010-09-25gallivm: Remove dead experimental code.José Fonseca
2010-09-25gallivm: Fetch the lod from the dynamic state when min_lod == max_lod.José Fonseca
2010-09-25draw: Fullfil the new min_lod/max_lod/lod_bias/border_color dynamic stateJosé Fonseca
2010-09-25gallivm: optimize yuv decodingRoland Scheidegger
this is more a proof to show vector shifts on x86 with per-element shift count are evil. Since we can avoid the shift with a single compare/select, use that instead. Replaces more than 20 instructions (and slow ones at that) with about 3, and cuts compiled shader size with mesa's yuvsqure demo by over 10% (no performance measurements done - but selection is blazing fast). Might want to revisit that for future cpus - unfortunately AVX won't have vector shifts neither, but AMD's XOP will, but even in that case using selection here is probably not slower.
2010-09-25gallivm: don't use URem/UDiv when calculating offsets for blocksRoland Scheidegger
While it's true that llvm can and will indeed replace this with bit arithmetic (since block height/width is POT), it does so (llvm 2.7) by element and hence extracts/shifts/reinserts each element individually. This costs about 16 instructions (and extract is not really fast) vs. 1...
2010-09-25gallivm: fix copy&paste bugRoland Scheidegger
looks like pot_depth should be used, not pot_height (found by accident, not verified)
2010-09-25util: fix util_pack_color for B4G4R4A4Marek Olšák
NOTE: This is a candidate for the 7.9 branch.