glsl-1.10: Verify sign multiplied by a value with negation, absolute value, or both

Graphics / Mesa 3D Graphics Library / Piglit - Ian Romanick [intel.com] - 20 February 2020 01:23 UTC

Both of the tests involving abs() fail on all versions of i965 that include 06d2c116415 ("intel/fs: Add a scale factor to emit_fsign"). The negation test would also fail, but an algebraic optimization moves the negation thereby masking the bug. Changes in mesa!1359 can reveal this bug.

fde152ac7 glsl-1.10: Verify sign multiplied by a value with negation, absolute value, or both
.../execution/fs-sign-times-abs.shader_test | 53 ++++++++++++++++++++++
.../execution/fs-sign-times-neg-abs.shader_test | 53 ++++++++++++++++++++++
.../execution/fs-sign-times-neg.shader_test | 53 ++++++++++++++++++++++
3 files changed, 159 insertions(+)

Upstream: cgit.freedesktop.org


  • Share