summaryrefslogtreecommitdiff
path: root/kms++util/src
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-03-30 14:35:06 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-03-30 14:36:50 +0300
commit3db1349b163b9d9291db3d0f001664968f5f9943 (patch)
tree16cf94e1f4a628554ef20c8d3fdbac99b18d822c /kms++util/src
parent273494aa2d3836110d6a2c73c9e00503c711b01c (diff)
resmgr: fix reserve_plane()
reserve_plane() had inverted check, and looked for any plane type but the one that was requested. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++util/src')
-rw-r--r--kms++util/src/resourcemanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kms++util/src/resourcemanager.cpp b/kms++util/src/resourcemanager.cpp
index f751147..c4bf7f8 100644
--- a/kms++util/src/resourcemanager.cpp
+++ b/kms++util/src/resourcemanager.cpp
@@ -138,7 +138,7 @@ Plane* ResourceManager::reserve_plane(Crtc* crtc, PlaneType type, PixelFormat fo
return nullptr;
for (Plane* plane : crtc->get_possible_planes()) {
- if (plane->plane_type() == type)
+ if (plane->plane_type() != type)
continue;
if (format != PixelFormat::Undefined && !plane->supports_format(format))