Add more offload tests

These test various clip scenarios.
This commit is contained in:
Matthias Clasen
2024-03-10 22:08:44 -04:00
parent b1e3b18ede
commit 229b34d478
7 changed files with 42 additions and 0 deletions

View File

@@ -466,6 +466,9 @@ if os_linux
'stop_offloading.node',
'source.node',
'nested.node',
'clipped.node',
'not-clipped.node',
'complex-clip.node',
]
foreach test : offload_tests

View File

@@ -0,0 +1,9 @@
clip {
clip: 10 10 10 10;
child: subsurface {
child: texture {
bounds: 0 0 20 20;
texture: url('data:image/svg+xml;utf-8,<svg width="20" height="20"></svg>');
}
}
}

View File

@@ -0,0 +1 @@
0: not offloaded

View File

@@ -0,0 +1,18 @@
rounded-clip {
clip: 0 0 50 50 / 20;
child: clip {
clip: 2 2 40 40;
child: container {
color {
color: white;
bounds: 0 0 50 50;
}
subsurface {
child: texture {
bounds: 10 10 20 20;
texture: url('data:image/svg+xml;utf-8,<svg width="20" height="20"></svg>');
}
}
}
}
}

View File

@@ -0,0 +1 @@
0: not offloaded

View File

@@ -0,0 +1,9 @@
clip {
clip: 0 0 50 50;
child: subsurface {
child: texture {
bounds: 0 0 20 20;
texture: url('data:image/svg+xml;utf-8,<svg width="20" height="20"></svg>');
}
}
}

View File

@@ -0,0 +1 @@
0: offloaded, raised, above: -, texture: 20x20, source: 0 0 20 20, dest: 0 0 20 20