radeon/llvm: enable unsafe math for graphics shaders
authorGrigori Goronzy <greg@chown.ath.cx>
Thu, 17 Jul 2014 16:44:25 +0000 (18:44 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 23 Jul 2014 14:40:33 +0000 (10:40 -0400)
commit0e9cdedd2e3943bdb7f3543a3508b883b167e427
treed28669bce19f80ed81957e98843bbfc78a7146a1
parent467f1585e28adba0e94ef593de131bc327f098bb
radeon/llvm: enable unsafe math for graphics shaders

Accuracy of some operations was recently improved in the R600 backend,
at the cost of slower code. This is required for compute shaders,
but not for graphics shaders. Add unsafe-fp-math hint to make LLVM
generate faster but possibly less accurate code.

Piglit didn't indicate any regressions.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeon/radeon_llvm_emit.c