testsuite: Update memorytexture test for TextureDownloader
authorBenjamin Otte <otte@redhat.com>
Sun, 28 May 2023 23:15:33 +0000 (01:15 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 29 May 2023 22:42:10 +0000 (00:42 +0200)
commit94a2dc4c479275569cd470a24e40214aff5f6e11
tree00f3b2e46c27896511e0cc01e7f062b099b1ab69
parent169a7f83e682b8d6ba867594ac32fbd4a4e86e3b
testsuite: Update memorytexture test for TextureDownloader

There is no longer a need to use gdk_texture_download() and force
conversion to ARGB8 format. We can download the pixels in the original
format again.

That way we avoid testing the conversion code and avoid having to deal
with differences in representable colors.

However, some formats do do conversions, so we allow pixel comparisons
to be accurate (requires 16bit comparison accuracy) or inaccurate (we
only care about 8bit).
Note that for the default RGBA formats, this is identical and means they
need to be bit-exact the same, no matter what.
But the higher bit depth formats may be more different - floating point
can even have different values with high accuracy (the float mantissa is
23 bit, we only care about 16).
testsuite/gdk/memorytexture.c