Is drmWaitVBlank() or drmModePageFlip necessary after drmModeSetPlane()
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
Quoted 9 lines · Randy Li
Hello all,
Recently, I meet a performance problem withdrmModeSetPlane(), it works
quite slow withdrm_atomic_commit(), I have to force it usedrm_atomic_async_commit()fordrmModeSetPlane()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 ofdrmWaitVBlank()or drmModePageFlip.
But I found most ofatomic_commit()would have a sync internal, waiting
vbank. So those functions likedrmWaitVBlank()or drmModePageFlip are not necessary afterdrmModeSetPlane()?
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