Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
test/alloc: add zpos-2x-reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Aug 12, 2021
1 parent b941c3e commit 28df863
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ tests = {
'composition-3x-fail',
'composition-3x-partial',
'composition-3x-force',
'zpos-2x-reverse',
],
'dynamic': [
'same',
Expand Down
20 changes: 20 additions & 0 deletions test/test_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 28df863

Please sign in to comment.