OSDN Git Service

etnaviv: fix bogus flush requests in transfer handling
authorLucas Stach <l.stach@pengutronix.de>
Tue, 26 Sep 2017 16:27:55 +0000 (18:27 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 10 Oct 2017 10:29:03 +0000 (12:29 +0200)
commit03b1f8ba205d3eff59784faf805272a4d7aa4b18
tree0eaa06e65e402256264f831f5251e3dc7ceab749
parent5ec21eb1a0c9fa08978784e58456fdd212aab4d7
etnaviv: fix bogus flush requests in transfer handling

The logic to decide if we need to flush the GPU command stream was broken
and hard to reason about. Fix and clarify this.

Fixes the data sync subtests from piglit arb_vertex_buffer_object.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_transfer.c