mach64: optimize wait_for_fifo
This is a simple optimization for fifo waiting that improves scrolling performance by 5%. If the queue has more free entries that what we consume, we can skip the costly register read next time. Signed-off-by: NMikulas Patocka <mpatocka@redhat.com> Reviewed-by: NVille Syrjälä <syrjala@sci.fi> Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Showing
想要评论请 注册 或 登录