summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* gallivm: More accurate float -> 24bit & 32bit unorm conversion.José Fonseca2010-10-131-40/+86
|
* gallivm: work-around trilinear mipmap filtering regression with LLVM 2.8Brian Paul2010-10-131-0/+20
| | | | The bug only happens on the AOS / fixed-pt path.
* gallivm: Remove unnecessary header.Vinson Lee2010-10-131-1/+0
|
* gallivm: only use lp_build_conv 4x4f -> 1x16 ub fastpath with sse2Roland Scheidegger2010-10-131-19/+5
| | | | | | | | This is relying on lp_build_pack2 using the sse2 pack intrinsics which handle clamping. (Alternatively could have make it use lp_build_packs2 but it might not even produce more efficient code than not using the fastpath in the first place.)
* draw/llvmpipe: replace DRAW_MAX_TEXTURE_LEVELS with PIPE_MAX_TEXTURE_LEVELSBrian Paul2010-10-124-20/+18
| | | | | There's no apparent reason for the former to exist. And they didn't even have the same value.
* gallivm: remove newlinesBrian Paul2010-10-121-2/+0
|
* gallivm: fix different handling of [non]normalized coords in linear soa pathRoland Scheidegger2010-10-131-16/+6
| | | | | There seems to be no reason for it, so do same math for both (except the scale mul, of course).
* gallium/util: add S8 tile sampling support.Dave Airlie2010-10-131-0/+27
|
* gallium/format: add X32_S8X24_USCALED format.Dave Airlie2010-10-133-0/+27
| | | | Has similiar use cases to the S8X24 and X24S8 formats.
* gallium/format: add support for X24S8 and S8X24 formats.Dave Airlie2010-10-134-0/+102
| | | | | | these formats are needed for hw that can sample and write stencil values. Signed-off-by: Dave Airlie <[email protected]>
* gallium/tgsi: add support for stencil writes.Dave Airlie2010-10-133-4/+8
| | | | | | this adds the capability + a stencil semantic id, + tgsi scan support. Signed-off-by: Dave Airlie <[email protected]>
* gallivm: Name anonymous union.José Fonseca2010-10-122-7/+7
|
* gallivm: don't branch on KILLs near end of shaderKeith Whitwell2010-10-121-10/+47
|
* gallium: move sse intrinsics debug helpers to u_sse.hKeith Whitwell2010-10-121-1/+79
|
* gallivm: More detailed analysis of tgsi shaders.José Fonseca2010-10-114-0/+559
| | | | To allow more optimizations, in particular for direct textures.
* tgsi: Export some names for some tgsi enums.José Fonseca2010-10-112-23/+35
| | | | Useful to give human legible names in other cases.
* gallivm: Eliminate unsigned integer arithmetic from texture coordinates.José Fonseca2010-10-113-42/+32
| | | | | | | | | | | SSE support for 32bit and 16bit unsigned arithmetic is not complete, and can easily result in inefficient code. In most cases signed/unsigned doesn't make a difference, such as for integer texture coordinates. So remove uint_coord_type and uint_coord_bld to avoid inefficient operations to sneak in the future.
* gallivm: Pass texture coords derivates as scalars.José Fonseca2010-10-104-26/+38
| | | | | We end up treating them as scalars in the end, and it saves some instructions.
* gallivm: Use variables instead of Phis in loops.José Fonseca2010-10-102-42/+23
| | | | With this commit all explicit Phi emission is now gone.
* gallivm: Allow to disable bri-linear filtering with ↵José Fonseca2010-10-103-9/+10
| | | | GALLIVM_DEBUG=no_brilinear runtime option
* gallivm: Fix a long standing bug with nested if-then-else emission.José Fonseca2010-10-101-17/+6
| | | | | | | | | | | | We can't patch true-block at end-if time, as there is no guarantee that the block at the beginning of the true stanza is the same at the end of the true stanza -- other control flow elements may have been emitted half way the true stanza. Although this bug surfaced recently with the commit to skip mip filtering when lod is an integer the bug was always there, although probably it was avoided until now: e.g., cubemap selection nests if-then-else on the else stanza, which does not suffer from the same problem.
* gallivm: Cleanup the rest of the flow module.José Fonseca2010-10-092-201/+37
|
* gallivm: Simplify if/then/else implementation.José Fonseca2010-10-095-91/+34
| | | | No need for for a flow stack anymore.
* gallivm: Factor out the SI->FP texture size conversion for SoA path tooJosé Fonseca2010-10-091-34/+56
|
* gallivm: Remove support for Phi generation.José Fonseca2010-10-092-221/+0
| | | | Simply rely on mem2reg pass. It's easier and more reliable.
* gallivm: Use varilables instead of Phis for cubemap selection.José Fonseca2010-10-091-36/+26
|
* gallivm: Don't generate Phis for execution mask.José Fonseca2010-10-092-8/+25
|
* gallivm: Special bri-linear computation path for unmodified rho.José Fonseca2010-10-091-20/+91
|
* gallivm: Less code duplication in log computation.José Fonseca2010-10-092-35/+88
|
* util: Defined M_SQRT2 when not available.José Fonseca2010-10-091-0/+5
|
* gallivm: Handle code have ret correctly.José Fonseca2010-10-091-2/+4
| | | | Stop disassembling on unconditional backwards jumps.
* llvmpipe: try to be sensible about whether to branch after mask updatesKeith Whitwell2010-10-093-6/+14
| | | | | Don't branch more than once in quick succession. Don't branch at the end of the shader.
* gallivm: simpler uint8->float conversionsKeith Whitwell2010-10-091-0/+10
| | | | | LLVM seems to finds it easier to reason about these than our mantissa-manipulation code.
* gallivm: prefer blendvb for integer argumentsKeith Whitwell2010-10-091-2/+4
|
* llvmpipe: store zero into all alloca'd valuesKeith Whitwell2010-10-091-0/+1
| | | | Fixes slowdown in isosurf with earlier versions of llvm.
* gallivm: Do size computations simultanously for all dimensions (AoS).José Fonseca2010-10-094-92/+177
| | | | | | | | | | Operate simultanouesly on <width, height, depth> vector as much as possible, instead of doing the operations on vectors with broadcasted scalars. Also do the 24.8 fixed point scalar with integer shift of the texture size, for unnormalized coordinates. AoS path only for now -- the same thing can be done for SoA.
* gallivm: make use of new iround code in lp_bld_conv.Roland Scheidegger2010-10-091-4/+4
| | | | Only requires sse2 now.
* gallivm: optimize soa linear clamp to edge wrap mode a bitRoland Scheidegger2010-10-091-23/+30
| | | | | | | | | Clamp against 0 instead of -0.5, which simplifies things. The former version would have resulted in both int coords being zero (in case of coord being smaller than 0) and some "unused" weight value, whereas now the int coords will be 0 and 1, but weight will be 0, hence the lerp should produce the same value. Still not happy about differences between normalized and non-normalized...
* gallivm: avoid unnecessary URem in linear wrap repeat caseRoland Scheidegger2010-10-091-3/+7
| | | | | | Haven't looked at what code this exactly generates but URem can't be fast. Instead of using two URem only use one and replace the second one with select/add (this is what the corresponding aos code already does).
* gallivm: more linear tex wrap mode calculation simplificationRoland Scheidegger2010-10-091-12/+9
| | | | | | | Rearrange order of operations a bit to make some clamps easier. All calculations should be equivalent. Note there seems to be some inconsistency in the clamp to edge case wrt normalized/non-normalized coords, could potentially simplify this too.
* gallivm: optimize some tex wrap mode calculations a bitRoland Scheidegger2010-10-091-6/+11
| | | | | | | | | Sometimes coords are clamped to positive numbers before doing conversion to int, or clamped to 0 afterwards, in this case can use itrunc instead of ifloor which is easier. This is only the case for nearest calculations unfortunately, except linear MIRROR_CLAMP_TO_EDGE which for the same reason can use a unsigned float build context so the ifloor_fract helper can reduce this to itrunc in the ifloor helper itself.
* gallivm: replace sub/floor/ifloor combo with ifloor_fractRoland Scheidegger2010-10-091-5/+1
|
* gallivm: faster iround implementation for sse2Roland Scheidegger2010-10-091-1/+53
| | | | | | 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.
* gallivm: fix trunc/itrunc commentRoland Scheidegger2010-10-091-6/+6
| | | | trunc of -1.5 is -1.0 not 1.0...
* gallivm: Remove unnecessary header.Vinson Lee2010-10-081-1/+0
|
* gallivm: Help for combined extraction and broadcasting.José Fonseca2010-10-083-15/+102
| | | | Doesn't change generated code quality, but saves some typing.
* llvmpipe: First minify the texture size, then broadcast.José Fonseca2010-10-083-32/+42
|
* gallivm: Move into the as much of the second level code as possible.José Fonseca2010-10-085-219/+120
| | | | | Also, pass more stuff trhough the sample build context, instead of arguments.
* gallivm: Warn when doing inefficient integer comparisons.José Fonseca2010-10-081-2/+18
|
* gallivm: round rather than truncate in new 4x4f->1x16ub conversion pathKeith Whitwell2010-10-081-17/+42
|