diff options
author | Christopher Michael <cp.michael@samsung.com> | 2019-01-02 10:01:55 -0500 |
---|---|---|
committer | Christopher Michael <cp.michael@samsung.com> | 2019-01-02 10:01:55 -0500 |
commit | cbac8eddb097d55b927e30b22f28f187808a4d0a (patch) | |
tree | 232aee560c35abb18e4af7268eea66b14793cc56 /src/lib | |
parent | e36e8d932165c531c9d77b725489bd976ecc9c6a (diff) |
ecore-drm2: Minor formatting fixes
NB: No functional changes
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_fb.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c index 85331aeaa2..243feca289 100644 --- a/src/lib/ecore_drm2/ecore_drm2_fb.c +++ b/src/lib/ecore_drm2/ecore_drm2_fb.c | |||
@@ -290,8 +290,7 @@ ecore_drm2_fb_flip_complete(Ecore_Drm2_Output *output) | |||
290 | plane->scanout = EINA_TRUE; | 290 | plane->scanout = EINA_TRUE; |
291 | if (fb->status_handler && (fb->scanout_count == 1) && | 291 | if (fb->status_handler && (fb->scanout_count == 1) && |
292 | (plane_scanout != plane->scanout)) | 292 | (plane_scanout != plane->scanout)) |
293 | fb->status_handler(fb, | 293 | fb->status_handler(fb, ECORE_DRM2_FB_STATUS_SCANOUT_ON, |
294 | ECORE_DRM2_FB_STATUS_SCANOUT_ON, | ||
295 | fb->status_data); | 294 | fb->status_data); |
296 | continue; | 295 | continue; |
297 | } | 296 | } |
@@ -301,8 +300,7 @@ ecore_drm2_fb_flip_complete(Ecore_Drm2_Output *output) | |||
301 | 300 | ||
302 | fb->scanout_count--; | 301 | fb->scanout_count--; |
303 | if (fb->status_handler && (fb->scanout_count == 0)) | 302 | if (fb->status_handler && (fb->scanout_count == 0)) |
304 | fb->status_handler(fb, | 303 | fb->status_handler(fb, ECORE_DRM2_FB_STATUS_SCANOUT_OFF, |
305 | ECORE_DRM2_FB_STATUS_SCANOUT_OFF, | ||
306 | fb->status_data); | 304 | fb->status_data); |
307 | } | 305 | } |
308 | } | 306 | } |
@@ -448,8 +446,7 @@ _fb_atomic_flip(Ecore_Drm2_Output *output) | |||
448 | EINA_SAFETY_ON_NULL_RETURN_VAL(output->prep.atomic_req, -1); | 446 | EINA_SAFETY_ON_NULL_RETURN_VAL(output->prep.atomic_req, -1); |
449 | 447 | ||
450 | res = | 448 | res = |
451 | sym_drmModeAtomicCommit(output->fd, | 449 | sym_drmModeAtomicCommit(output->fd, output->prep.atomic_req, flags, |
452 | output->prep.atomic_req, flags, | ||
453 | output->user_data); | 450 | output->user_data); |
454 | if (res < 0) | 451 | if (res < 0) |
455 | { | 452 | { |
@@ -502,8 +499,7 @@ _fb_flip(Ecore_Drm2_Output *output) | |||
502 | static Eina_Bool bugged_about_bug = EINA_FALSE; | 499 | static Eina_Bool bugged_about_bug = EINA_FALSE; |
503 | repeat = EINA_FALSE; | 500 | repeat = EINA_FALSE; |
504 | ret = sym_drmModePageFlip(fb->fd, output->crtc_id, fb->id, | 501 | ret = sym_drmModePageFlip(fb->fd, output->crtc_id, fb->id, |
505 | DRM_MODE_PAGE_FLIP_EVENT, | 502 | DRM_MODE_PAGE_FLIP_EVENT, output->user_data); |
506 | output->user_data); | ||
507 | /* Some drivers (RPI - looking at you) are broken and produce | 503 | /* Some drivers (RPI - looking at you) are broken and produce |
508 | * flip events before they are ready for another flip, so be | 504 | * flip events before they are ready for another flip, so be |
509 | * a little robust in the face of badness and try a few times | 505 | * a little robust in the face of badness and try a few times |