From ac64948efd478a38b715ba02c8e92a7c93f36245 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 4 Jan 2024 01:35:23 +0100 Subject: [PATCH] testsuite: Add a test for a recent mipmap generation bug Tests the fix in ab1fba6fdcbf273604258061c1b7fad1ae7eef97. Related: #6298 Related: !6704 --- testsuite/gsk/compare/mipmap-generation-later.node | 13 +++++++++++++ testsuite/gsk/compare/mipmap-generation-later.png | Bin 0 -> 97 bytes testsuite/gsk/meson.build | 1 + 3 files changed, 14 insertions(+) create mode 100644 testsuite/gsk/compare/mipmap-generation-later.node create mode 100644 testsuite/gsk/compare/mipmap-generation-later.png diff --git a/testsuite/gsk/compare/mipmap-generation-later.node b/testsuite/gsk/compare/mipmap-generation-later.node new file mode 100644 index 0000000000..2c20c93b11 --- /dev/null +++ b/testsuite/gsk/compare/mipmap-generation-later.node @@ -0,0 +1,13 @@ +texture-scale { + bounds: 0 0 10 10; + filter: nearest; + texture: "texture1" url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAZklEQVRYhe3SoQ3AMBAEwXOUQtJ/\ +Ve7kAxJqtOTADrGOWa9dszN58tn/W7TXJNPwkdO+Uu7OTsWlTrv+gjZI2SBlg5QNUjZI2SBlg5QN\ +UjZI2SBlg5QNUjZI2SBlg5QNUjZI1Tf4AnlN8eRDOVeLAAAAAElFTkSuQmCC\ +"); +} +texture-scale { + bounds: 15 0 10 10; + filter: trilinear; + texture: "texture1"; +} diff --git a/testsuite/gsk/compare/mipmap-generation-later.png b/testsuite/gsk/compare/mipmap-generation-later.png new file mode 100644 index 0000000000000000000000000000000000000000..f8f3ff8b6dd7ca27908afa14830e85330b311792 GIT binary patch literal 97 zcmeAS@N?(olHy`uVBq!ia0vp^l0eMG!3HE9SAPuyQW~Bvjv*QolmGm0cxcZo*bvy* vC>Z;up0TiMW=Eilro`5iE0Y4fIhYx~%w}!k6EBz!)WhKE>gTe~DWM4ffY=*E literal 0 HcmV?d00001 diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index ca789f1c5a..125490fadf 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -85,6 +85,7 @@ compare_render_tests = [ 'mask-modes-in-opacity', 'mask-modes-with-alpha', 'mask-texture-color-alpha', + 'mipmap-generation-later', 'nested-rounded-clips', 'offscreen-pixel-alignment-nogl-nocairo', 'opacity_clip',