From cc3e25b163623e239ac97c15122bcce2500bb124 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 30 Oct 2023 21:10:58 +0100 Subject: [PATCH] testsuite: Be more resistant against rounding errors Make a test use numbers that are less likely to cause rounding issues in GPUs (read: use powers of 2). --- testsuite/gsk/compare/texture-scale-magnify-rotate.node | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testsuite/gsk/compare/texture-scale-magnify-rotate.node b/testsuite/gsk/compare/texture-scale-magnify-rotate.node index e50c8ba126..407ebe3df7 100644 --- a/testsuite/gsk/compare/texture-scale-magnify-rotate.node +++ b/testsuite/gsk/compare/texture-scale-magnify-rotate.node @@ -1,10 +1,10 @@ clip { - clip: 24995 24995 10 10; + clip: 16379 16379 10 10; child: transform { - transform: translate(25000, 25000) rotate(90) translate(-25000, -25000); + transform: translate(16384, 16384) rotate(90) translate(-16384, -16384); child: texture-scale { texture: url("data:;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAKElEQVQYlWNkYGD4z4AG/v/HEGJgwhDBAQZQIQs2hzMyMtLBauorBACQUgcSISWLRgAAAABJRU5ErkJggg=="); - bounds: 0 0 50000 50000; + bounds: 0 0 32768 32768; filter: nearest; } }