summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/guid.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2014-12-03 15:31:44 +0100
committerEmil Velikov <[email protected]>2015-01-22 22:16:20 +0000
commitf5e8e3fb806ef8516a7bd5fabdce4cc24e4c9636 (patch)
tree80cc81cf43d3bbffed3d513abd170c164719a0a0 /src/gallium/state_trackers/nine/guid.c
parent2487f7357449ee520a59f6d81506d297aca752f2 (diff)
st/nine: Handle NRM with input of null norm
When the input's xyz are 0.0, the output should be 0.0. This is due to the fact that Inf * 0 = 0 for dx9. To handle this case, cap the result of RSQ to FLT_MAX. We have FLT_MAX * 0 = 0. Reviewed-by: David Heidelberg <[email protected]> Signed-off-by: Axel Davy <[email protected]> Cc: "10.4" <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/guid.c')
0 files changed, 0 insertions, 0 deletions