gallivm: implement the correct version of LRP
authorMarek Olšák <marek.olsak@amd.com>
Sat, 10 Oct 2015 20:05:58 +0000 (22:05 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 17 Oct 2015 19:40:03 +0000 (21:40 +0200)
commit529c5e77402012aa0c0a11ee71a1a65e51edb496
tree9f77a16ce5121379847fef4beb465e97a38d5a53
parenta2197cac7fd6ce3f897a89121f5e499d28a3888e
gallivm: implement the correct version of LRP

The previous version has precision issues. This can be a problem
with tessellation. Sadly, I can't find the article where I read it
anymore. I'm not sure if the unsafe-fp-math flag would be enough to revert
this.

v2: added the comment
src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c