tests: add test that validates smooth-line coverage
commit9d87906677c17b4eddd23469f5989d142b9572fa
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 21 Nov 2022 10:07:15 +0000 (21 11:07 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 5 Dec 2022 08:43:32 +0000 (5 09:43 +0100)
tree21e1426acc865c04e5b8764e3743b78ee73761d7
parent71eb7b6880c842da2c2414f2be9468e9fd95d525
tests: add test that validates smooth-line coverage

This tests drawing a horizontal smooth line divided into varying length
segments, using additive blending to validate that the sum of the
coverage adds up to one, as one would expect.

While this isn't an explicit requirement in the OpenGL spec, the
identity should be a requirement due to the way smooth lines is
specified. It's also something that most reasonable approximations
should be able to produce.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/747>
tests/general/CMakeLists.gl.txt
tests/general/line-smooth-coverage.c [new file with mode: 0644]
tests/opengl.py