egl: improve dri2_fallback_swap_buffers_with_damage()