summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-12-20 11:17:13 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-12-20 11:17:13 +0200
commit6cad07d9ff9a7d5aec9d288eac9fd72b881a4ba3 (patch)
tree2ebbcbfe292dff5729c99e159f2d2e2c29bdd3a9 /utils
parent5da322dbf9573cd7ce9506541861f509eaea1bc7 (diff)
kmstest: don't reserve primary_plane if it's not needed
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/kmstest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/kmstest.cpp b/utils/kmstest.cpp
index e949368..557c3e5 100644
--- a/utils/kmstest.cpp
+++ b/utils/kmstest.cpp
@@ -991,9 +991,12 @@ int main(int argc, char **argv)
if (card.has_atomic()) {
for (OutputInfo& o : outputs) {
+ if (o.fbs.empty())
+ continue;
+
o.primary_plane = resman.reserve_primary_plane(o.crtc);
- if (!o.fbs.empty() && !o.primary_plane)
+ if (!o.primary_plane)
EXIT("Could not get primary plane for crtc '%u'", o.crtc->id());
}
}