[PATCH v3 RESEND 1/2] drm: rework flip-work helpers to avoid calling func when the FIFO is full