Commit Graph

66 Commits

Author SHA1 Message Date
José Fonseca a9d1a85f81 gallicm: Newton-Raphson step to improve precision.
Disabled as it doesn't make VS/PSPrecision DCT happy, and it would
unnecessarily slow some cases where it is not needed.
2010-05-04 00:22:16 +01:00
José Fonseca 992fc62d59 gallivm: Disable llvm.cos.v4f32 and llvm.sin.v4f32 instrinsics on Windows.
Runtime linking doesn't quite work.

Just comment then out for now to prevent crashes. These will go away in
the future because calling 4 times CRT's cosf()/sinf() is over-precise
and under-performing.
2010-04-27 14:27:24 +01:00
José Fonseca 35a920e83b gallivm: LLVMConstBitCast -> LLVMBuildBitCast
As the argument in general might not be a constant.
2010-04-24 10:06:27 +01:00
Zack Rusin 63aa9b505a gallivm: make sure we return the correct type when approximating log's 2010-04-22 13:57:18 -04:00
Brian Paul 185be3a87a gallivm/llvmpipe: rename some constant building functions 2010-03-15 18:16:56 -06:00
Brian Paul d25d3cc008 gallivm: fix typo/bug in lp_build_sgn()
We were never returning -1 as a result.  This fixes some inverted/flipped
faces with cube mapping.
2010-03-15 11:30:05 -06:00
Brian Paul f9d753787e gallivm: fix incorrect floor(), itrunc()
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-15 10:29:10 -06:00
Brian Paul a6196ce8be gallivm: support non-vector float in lp_build_sgn() 2010-03-12 16:55:28 -07:00
Brian Paul 0b3bb6318e gallivm: added lp_build_sum_vector() 2010-03-11 16:26:12 -07:00
Brian Paul a599f552f2 gallivm: handle scalar floats in lp_build_floor() and lp_build_iround() 2010-03-10 18:09:49 -07:00
Brian Paul 2ccae040a4 gallivm: checkpoint: nearest mipmap filtering
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-09 09:40:41 -07:00
Brian Paul 516bad2272 gallivm: added lp_build_fract() 2010-03-04 10:53:27 -07:00
Brian Paul 6464d81e77 gallivm: added lp_build_set_sign() 2010-03-04 10:53:26 -07:00
Brian Paul 7d230dae70 gallivm: added lp_build_negate() 2010-03-04 10:53:26 -07:00
Brian Paul 402f54b0d1 gallivm: added clamp and int_to_float functions 2010-02-23 21:16:18 -07:00
Zack Rusin c61bf36393 llvmpipe: export the tgsi translation code to a common layer
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.
2010-02-08 18:22:11 -05:00
Renamed from src/gallium/drivers/llvmpipe/lp_bld_arit.c (Browse further)