From b988fd73c909cc859999881374bb1fc2839eae35 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Sat, 21 May 2022 18:18:01 +0200 Subject: [PATCH] tests/wayland: Add test for buffer transforms Ensure that buffer transforms are correctly rendered. This test would fail without the commit "wayland/surface: Swap 90 and 270 degree transforms" Part-of: --- .../ref-tests/wayland_buffer_transform_0.ref.png | Bin 0 -> 1421 bytes .../ref-tests/wayland_buffer_transform_1.ref.png | Bin 0 -> 1420 bytes .../ref-tests/wayland_buffer_transform_2.ref.png | Bin 0 -> 1419 bytes .../ref-tests/wayland_buffer_transform_3.ref.png | Bin 0 -> 1422 bytes .../ref-tests/wayland_buffer_transform_4.ref.png | Bin 0 -> 1419 bytes .../ref-tests/wayland_buffer_transform_5.ref.png | Bin 0 -> 1422 bytes .../ref-tests/wayland_buffer_transform_6.ref.png | Bin 0 -> 1422 bytes .../ref-tests/wayland_buffer_transform_7.ref.png | Bin 0 -> 1420 bytes src/tests/wayland-test-clients/meson.build | 3 +++ src/tests/wayland-unit-tests.c | 12 ++++++++++++ 10 files changed, 15 insertions(+) create mode 100644 src/tests/ref-tests/wayland_buffer_transform_0.ref.png create mode 100644 src/tests/ref-tests/wayland_buffer_transform_1.ref.png create mode 100644 src/tests/ref-tests/wayland_buffer_transform_2.ref.png create mode 100644 src/tests/ref-tests/wayland_buffer_transform_3.ref.png create mode 100644 src/tests/ref-tests/wayland_buffer_transform_4.ref.png create mode 100644 src/tests/ref-tests/wayland_buffer_transform_5.ref.png create mode 100644 src/tests/ref-tests/wayland_buffer_transform_6.ref.png create mode 100644 src/tests/ref-tests/wayland_buffer_transform_7.ref.png diff --git a/src/tests/ref-tests/wayland_buffer_transform_0.ref.png b/src/tests/ref-tests/wayland_buffer_transform_0.ref.png new file mode 100644 index 0000000000000000000000000000000000000000..24f2f80b84f336294cfd4d46ecc5b2196809b8a6 GIT binary patch literal 1421 zcmeAS@N?(olHy`uVBq!ia0y~yV4MKL985qF{<{lj11Yv7Z+91l{~)+v@AAnE46II` zE{-7;bKYLt$a%m(fW`6T-|v6&4mLWjnX&T0qNm@^==`{CXWO7{yPTb&Mm55rErC(8 zi8X~oY=Yt_XEY4xpAM?8&AE4=H*J30fmRzG1?LS7JO`PKSh!CJjB-Z9U_jDAT*oO+ V>38z2>A>=p!PC{xWt~$(69DDQi+=zB literal 0 HcmV?d00001 diff --git a/src/tests/ref-tests/wayland_buffer_transform_1.ref.png b/src/tests/ref-tests/wayland_buffer_transform_1.ref.png new file mode 100644 index 0000000000000000000000000000000000000000..b39b9c654d1b00a41af9c4746fcb748c660ae01a GIT binary patch literal 1420 zcmeAS@N?(olHy`uVBq!ia0y~yV4MKL985qF{<{lj11Yv7Z+91l{~)+v@AAnE46Kfx zE{-7;bKYJ%$lGAR!*a0YU$vR;2L{*fG_4)&TR+V+<&Jy4=Es53Dux5WO{^&#ViOc2 z9NH2XB}X}8RSXA$n^;pg#3m?4 zIJ6}&N{(_y!+`$jVB_^OFM0n=SpA6GPDjCcLj%u2CLB`{g>gTe~DWM4f@%M_z literal 0 HcmV?d00001 diff --git a/src/tests/ref-tests/wayland_buffer_transform_3.ref.png b/src/tests/ref-tests/wayland_buffer_transform_3.ref.png new file mode 100644 index 0000000000000000000000000000000000000000..fcbcb54a1822d10acb9e2b7593bd7d7bbcbc3ced GIT binary patch literal 1422 zcmeAS@N?(olHy`uVBq!ia0y~yV4MKL985qF{<{lj11Yv7Z+91l{~)+v@AAnE46M$c zE{-7;bKYJ%$az3Pz}1oW<^I&mPJB%^Ggm&4pLYD*#%m3CugzGlUa;`_7lwxYEZipq zbQGL7H1Hf`G8*NKh5`N4!Qc^qdDux5WO{^&#ViOc2 z9NH2XB}X}WW>UKLSU3L8U_QB4)Pv^aY~8D Strh~7t_+^8elF{r5}E*NwTLSK literal 0 HcmV?d00001 diff --git a/src/tests/ref-tests/wayland_buffer_transform_5.ref.png b/src/tests/ref-tests/wayland_buffer_transform_5.ref.png new file mode 100644 index 0000000000000000000000000000000000000000..9833db07c346fe11695e270d3438bbea771ed08b GIT binary patch literal 1422 zcmeAS@N?(olHy`uVBq!ia0y~yV4MKL985qF{<{lj11Yv7Z+91l{~)+v@AAnE46M$c zE{-7;bKYLt$a%m(fW`6T-|v6&4mLWjnX&T0qNm@^==`{AXWJlcyPTb&Mm55rErC(8 zi8X~oY=Yt_XEY4xpAM?e&bfD>HSO(X;T;p&M-$>`W*qPW=@@s%NlxkJJ37L^0+zwk L)z4*}Q$iB}Vqtq{ literal 0 HcmV?d00001 diff --git a/src/tests/ref-tests/wayland_buffer_transform_6.ref.png b/src/tests/ref-tests/wayland_buffer_transform_6.ref.png new file mode 100644 index 0000000000000000000000000000000000000000..9a68091077f933030f43c0ad8b59a4678c826ba0 GIT binary patch literal 1422 zcmeAS@N?(olHy`uVBq!ia0y~yV4MKL985qF{<{lj11Yv7Z+91l{~)+v@AAnE46M$c zE{-7;bKYJ%$k|{Z;Cj&I&Hkr1n%GtM7z7`**Xf^|y@qjqbn$m4zLK|c3?HT?FiJMD zrf`T&P>gVB8|93K0sYg#o#eOk4s