The idea is to have a horizontal pattern split into two with the top and bottom halves having different precision. This allows one to see whether 10bpc support is working properly or not, as there are many pieces to the puzzle beyond the basic format support (gamma ramps, bpc encodings, etc).
This is really only useful on 10bpc formats, but we also add support for 8bpc formats to ease testing. In the future, this could be applied to 16bpc formats as well.
e5442195 util: add gradient pattern
tests/util/pattern.c | 113 ++++++++++++++++++++++++++++++++++++++++++++++++---
tests/util/pattern.h | 1 +
2 files changed, 109 insertions(+), 5 deletions(-)