diff options
author | Maxime Ripard <maxime@cerno.tech> | 2022-03-08 14:23:39 +0100 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-06-28 15:56:16 +0200 |
commit | 85f4c1005150683397fd2775885067ce3515fe06 (patch) | |
tree | 70c5644bdae3fd879897126d3fd919685a2952ca /include/drm-uapi | |
parent | 9e9469cee564428d21ac2a72e81e4244ebca4d53 (diff) |
lib/igt_fb: Ignore the X component when computing CRC
The igt_fb_get_fnv1a_crc() function will compute a FNV-1a hash over the
content of the framebuffer. The sole user of this function is the
writeback test suite, which will use it to compare an XRGB8888 buffer
used in input to an XRGB8888 buffer filled by the writeback connector.
However, that function uses each bytes of each buffers to compute the
hash, and therefore the writeback code assumes that the hardware will
preserve the content of the X component through the writeback pipeline,
which isn't true for all hardware. VC4 doesn't for example.
Since that function is only ever used for XRGB8888 buffers, let's just
set the most significant to 0 (which is the X padding) for each pixel
when computing the hash, and thus ignore whatever the hardware will
return here.
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'include/drm-uapi')
0 files changed, 0 insertions, 0 deletions