Re: [PATCH 44/59] drm/mediatek: Use drm_atomic_helper_wait_for_fences

2019-06-16 Thread CK Hu
Hi, Daniel: On Fri, 2019-06-14 at 22:36 +0200, Daniel Vetter wrote: > If we use the gem fb helper as the prepare_fb hook, plus the > drm_prime.c import helpers now automatically setting obj->resv, we can > use the shared helpers to wait for fences instead of rolling our own. > Note that this

[PATCH 44/59] drm/mediatek: Use drm_atomic_helper_wait_for_fences

2019-06-14 Thread Daniel Vetter
If we use the gem fb helper as the prepare_fb hook, plus the drm_prime.c import helpers now automatically setting obj->resv, we can use the shared helpers to wait for fences instead of rolling our own. Note that this relies on mtk setting drm_fb->obj, which is already done in