aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2011-10-06 10:20:10 -0700
committerPaul Berry <[email protected]>2011-10-31 11:24:03 -0700
commitede60bc4670a8d9c14921c77abee1ac57fc0e6bf (patch)
treec545778fe124435a470d0958d60110a52863e242 /src/mesa/drivers/dri/i965
parentb6f32bbe12e1082e78951b6ef073bf244ba0b8b7 (diff)
glsl: Add isinf() and isnan() builtins.
The implementations are as follows: isinf(x) = (abs(x) == +infinity) isnan(x) = (x != x) Note: the latter formula is not necessarily obvious. It works because NaN is the only floating point number that does not equal itself. Fixes piglit tests "isinf-and-isnan fs_basic" and "isinf-and-isnan vs_basic".
Diffstat (limited to 'src/mesa/drivers/dri/i965')
0 files changed, 0 insertions, 0 deletions