mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-12-26 21:59:18 +01:00
test/alloc: add zpos-2x-reverse
This commit is contained in:
parent
76f456d62e
commit
1db99c213c
2 changed files with 21 additions and 0 deletions
|
@ -44,6 +44,7 @@ tests = {
|
||||||
'composition-3x-fail',
|
'composition-3x-fail',
|
||||||
'composition-3x-partial',
|
'composition-3x-partial',
|
||||||
'composition-3x-force',
|
'composition-3x-force',
|
||||||
|
'zpos-2x-reverse',
|
||||||
],
|
],
|
||||||
'dynamic': [
|
'dynamic': [
|
||||||
'same',
|
'same',
|
||||||
|
|
|
@ -464,6 +464,26 @@ static struct test_case tests[] = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.name = "zpos-2x-reverse",
|
||||||
|
/* Layer on top comes first */
|
||||||
|
.layers = {
|
||||||
|
{
|
||||||
|
.width = 100,
|
||||||
|
.height = 100,
|
||||||
|
.zpos = 2,
|
||||||
|
.compat = { PRIMARY_PLANE, OVERLAY_PLANE },
|
||||||
|
.result = OVERLAY_PLANE,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.width = 1920,
|
||||||
|
.height = 1080,
|
||||||
|
.zpos = 1,
|
||||||
|
.compat = { PRIMARY_PLANE, OVERLAY_PLANE },
|
||||||
|
.result = PRIMARY_PLANE,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
.name = "composition-3x",
|
.name = "composition-3x",
|
||||||
.layers = {
|
.layers = {
|
||||||
|
|
Loading…
Reference in a new issue