diff options
author | David Heidelberg <david.heidelberg@collabora.com> | 2022-06-09 00:09:45 +0200 |
---|---|---|
committer | David Heidelberg <david.heidelberg@collabora.com> | 2022-06-09 11:54:28 +0200 |
commit | b2c9d8f56b45d79f804f4cb5ac62520f0edd8988 (patch) | |
tree | 5c6c2af384290ff352ae52964e0fc06d4fd1960d | |
parent | a1a1824b38f1d7bfe851633db416c6bed84ba557 (diff) |
framework/replay: disable AA accounting when comparing with no tolerance
While we set threshold to 0.0, pixelmatch does by default antialiasing
detection and ignore differences produced by possible AA, so let's
disable it too for measure with no tolerance
Fixes: https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/669
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/696>
-rw-r--r-- | templates/test_result.mako | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/test_result.mako b/templates/test_result.mako index 97e53cad0..d1d3a1215 100644 --- a/templates/test_result.mako +++ b/templates/test_result.mako @@ -41,7 +41,7 @@ const diff_data = diff_ctx.createImageData(width, height) const diff_count_rel = pixelmatch(ref_data.data, rend_data.data, diff_data.data, width, height, {threshold: 0.1}) - const diff_count_abs = pixelmatch(ref_data.data, rend_data.data, diff_data.data, width, height, {threshold: 0.0}) + const diff_count_abs = pixelmatch(ref_data.data, rend_data.data, diff_data.data, width, height, {threshold: 0.0, includeAA: true}) document.getElementById("diffPixelCount").innerHTML = "Different pixels: " + diff_count_abs + " <small>(no tolerance)</small>, <strong>" + diff_count_rel + "</strong> <small>(1% tol.)</small>" diff_ctx.putImageData(diff_data, 0, 0) |