summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_outputs.c
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-01-02 11:05:07 -0500
committerDerek Foreman <derek.foreman.samsung@gmail.com>2019-01-17 09:37:33 -0600
commit8079d6d38a455dc548482353ff739cac82fdfc23 (patch)
tree8b010a20fa147a3a43ceaec34b44e09ae2a671e1 /src/lib/ecore_drm2/ecore_drm2_outputs.c
parent1b7129cea0d90f76a21bd6b4e40d1528141e087f (diff)
ecore-drm2: Pass output as data to drmModePageFlip and drmModeAtomicCommit
In order to support per-output ticking, the drmModePageFlip and drmModeAtomicCommit functions need to pass the actual Output as data to the pageflip callback so that the pageflip callback function can pass the proper rectangle to ecore_evas_animator_tick Differential Revision: https://phab.enlightenment.org/D7678
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index e39f26a6da..928a16c32d 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -1291,7 +1291,7 @@ _output_mode_atomic_set(Ecore_Drm2_Output *output, Ecore_Drm2_Output_Mode *mode)
1291 } 1291 }
1292 1292
1293 ret = sym_drmModeAtomicCommit(output->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET, 1293 ret = sym_drmModeAtomicCommit(output->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET,
1294 output->user_data); 1294 output);
1295 if (ret < 0) 1295 if (ret < 0)
1296 { 1296 {
1297 ERR("Failed to commit atomic Mode: %m"); 1297 ERR("Failed to commit atomic Mode: %m");
@@ -1538,7 +1538,7 @@ ecore_drm2_output_rotation_set(Ecore_Drm2_Output *output, int rotation)
1538 if (res < 0) goto err; 1538 if (res < 0) goto err;
1539 1539
1540 res = sym_drmModeAtomicCommit(output->fd, req, flags, 1540 res = sym_drmModeAtomicCommit(output->fd, req, flags,
1541 output->user_data); 1541 output);
1542 if (res < 0) 1542 if (res < 0)
1543 goto err; 1543 goto err;
1544 else 1544 else