diff options
author | Brian Paul <brianp@vmware.com> | 2009-09-29 18:57:13 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-09-29 18:57:13 -0600 |
commit | 65765c9f2c5d3568608bde57db0bf44d6b724755 (patch) | |
tree | 9825cbfd5c239e2bef19d1ea40b1fc1cb743592c /configs/freebsd-dri-x86 | |
parent | 3c794e45b02c66ce3f52fe359f733e4d7d2ce315 (diff) |
glsl: rewrite sqrt(x) intrinsic to handle x=0
Since sqrt() is basically implemented in terms of RSQ/RCP we'll do a
divide by zero if x=0 and wind up with unpredictable results.
Now use CMP instruction to test for x<=0 and return zero in that case.
Diffstat (limited to 'configs/freebsd-dri-x86')
0 files changed, 0 insertions, 0 deletions