Skip to contentSkip to conversation

Is drmWaitVBlank() or drmModePageFlip necessary after drmModeSetPlane()

DISCUSSION Randy Li 2 participants 2 messages Jan 3, 2017 – Jan 4, 2017

lore
Share & tools
lore

Randy Li

author
#0 lore raw

Hello all,
Recently, I meet a performance problem with drmModeSetPlane(), it
works quite slow with drm_atomic_commit(), I have to force it use drm_atomic_async_commit() for drmModeSetPlane() which modifies the drm base system. I want to optimize the performance in standard way, so I think I could move those sync job to one of drmWaitVBlank() or drmModePageFlip.
But I found most of atomic_commit() would have a sync internal,
waiting vbank. So those functions like drmWaitVBlank() or drmModePageFlip are not necessary after drmModeSetPlane()?

Signature · 8 lines
Randy Li
The third produce department


_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 9 lines · Randy Li

Hello all,
Recently, I meet a performance problem with drmModeSetPlane(), it works
quite slow with drm_atomic_commit(), I have to force it use drm_atomic_async_commit() for drmModeSetPlane() which modifies the drm base system. I want to optimize the performance in standard way, so I think I could move those sync job to one of drmWaitVBlank() or drmModePageFlip.
But I found most of atomic_commit() would have a sync internal, waiting
vbank. So those functions like drmWaitVBlank() or drmModePageFlip are not necessary after drmModeSetPlane()?

Don't use the legacy plane functions when you have an atomic driver, instead just do all the plane updates together in one nonblocking atomic commit. Legacy plane functions only work well if you only touch one plane and leave all others unchanged (plus maybe move the cursor). -Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel