summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-24 15:37:30 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-24 15:37:30 +0300
commit5d443ed7acb194e4831400d3e1cec5bcb40dc917 (patch)
tree7009da8ee455f78cf1c35d61f7894959bb6352db /py
parent981be2267955f92a20001fc90dea53d3c6f5e2e4 (diff)
py: fix __atomic_req_add_plane when crtc = None
Diffstat (limited to 'py')
-rw-r--r--py/pykms/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/pykms/__init__.py b/py/pykms/__init__.py
index 6ee9eba..258b4e0 100644
--- a/py/pykms/__init__.py
+++ b/py/pykms/__init__.py
@@ -103,7 +103,7 @@ def __atomic_req_add_plane(req, plane, fb, crtc,
dst = src
m = {"FB_ID": fb.id if fb else 0,
- "CRTC_ID": crtc.id if fb else 0}
+ "CRTC_ID": crtc.id if crtc else 0}
if src is not None:
src_x = int(round(src[0] * 65536))