tests: add viewport test for repeat mode
authorPekka Paalanen <pekka.paalanen@collabora.com>
Wed, 11 Mar 2020 15:43:44 +0000 (17:43 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.com>
Thu, 12 Mar 2020 11:22:06 +0000 (13:22 +0200)
commit4505f8111125f861d8e039f26a0f062ead4aa043
tree8821f88a607be007cb74e31842f9a28685c5dee8
parentf26d17fe03746afca1f08cd8c6c97d676112a9e1
tests: add viewport test for repeat mode

This test ensures that
"pixman-renderer: half-fix bilinear sampling on edges"
keeps on working.

Unlike in the original report
https://gitlab.freedesktop.org/wayland/weston/issues/373, here we use buffer
scale 2 instead of output scale 2 to trigger bilinear filter. The effect is the
same, the actual resulting image in the failing case is just a little
different. This is so that it will be easy to add more viewport screenshooting
tests in this program in the future.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
tests/meson.build
tests/reference/viewport_upscale_solid-00.png [new file with mode: 0644]
tests/viewporter-shot-test.c [new file with mode: 0644]