test/alloc: add zpos-2x-reverse

This commit is contained in:
Simon Ser 2021-12-14 17:13:49 +01:00
parent 76f456d62e
commit 1db99c213c
2 changed files with 21 additions and 0 deletions

View file

@ -44,6 +44,7 @@ tests = {
'composition-3x-fail',
'composition-3x-partial',
'composition-3x-force',
'zpos-2x-reverse',
],
'dynamic': [
'same',

View file

@ -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",
.layers = {