diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2016-05-16 12:51:00 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2016-05-20 19:53:13 -0700 |
commit | 4d667d40d9ec47bcc86c387e5b939aa1bf5c1089 (patch) | |
tree | 932945b0e16d264531e24bdcb9296c87e871cbc5 /CMakeLists.txt | |
parent | 1cc4003d3d1d90746be03820696406c125a06772 (diff) |
Make ARB_shader_precision tests ignore 0.0 vs -0.0.
The multiplication precision tests were attempting to multiply
0.0 * -0.1 and expecting to get +0.0 (0x00000000), and failing
if they received -0.0 (0x80000000). This seems fairly bogus.
According to the ARB_shader_precision specification:
"In general, correct signedness of 0 is not required."
To avoid this problem, remove the sign bit from both the results
and expected values when the value is equal to (+/-) 0.0.
v2: Use xs.dtype.type(0.0) (suggested by Dylan Baker).
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions