test/coverage: Exercise invariance under mirror symmetry

Graphics / Cairo - Chris Wilson [chris-wilson.co.uk] - 29 September 2014 02:42 UTC

Massimo noticed that the record/record-flip were not being rasterised as identical mirror images due to a half-subpixel offset in the tor scan converter. This test attempts to reproduce this error by rendering a rhombus around the origin of each cell (that is it generates 4 mirror images of a triangle in the 4 different orientations0. The expectation is that each pixel in the group is lit identically as the coverage is identical.

References: https://bugs.freedesktop.org/show_bug.cgi?id=84396

5c03b20 test/coverage: Exercise invariance under mirror symmetry
test/coverage.c | 55 +++++++++++++++++++++++++++++++
test/reference/coverage-rhombus.ref.png | Bin 0 -> 7053 bytes
2 files changed, 55 insertions(+)

Upstream: cgit.freedesktop.org


  • Share