lima: optinal flush submit in lima_clear
authorQiang Yu <yuq825@gmail.com>
Fri, 7 Feb 2020 11:43:10 +0000 (19:43 +0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Feb 2020 02:54:15 +0000 (02:54 +0000)
commit131c50569066152a8e90b948b0873b990d748e98
treeb1d3b735d2173d972e3faea7141b319eef797ddb
parentd6ad8e590f27ce0413389f6274fa05106d45dba1
lima: optinal flush submit in lima_clear

flush current submit only when there is any draw pending instead of
flush all submits.

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>
src/gallium/drivers/lima/lima_draw.c
src/gallium/drivers/lima/lima_submit.c
src/gallium/drivers/lima/lima_submit.h