etnaviv: don't flush own context when updating resource use
authorLucas Stach <l.stach@pengutronix.de>
Wed, 27 Mar 2019 11:22:57 +0000 (12:22 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 3 Apr 2019 10:54:09 +0000 (12:54 +0200)
commitf317ee1aff4365df5b8d183565eeee535ebc6576
treed96d881803ffa39bd9c00b7dc2c251e24aca0bf7
parentc7cddc278767ef5acfd7bba35c66ebebef3b3396
etnaviv: don't flush own context when updating resource use

The context is self synchronizing at the GPU side, as commands are
executed in order. We must not flush our own context when updating the
resource use, as that leads to excessive flushing on effectively every
draw call, causing huge CPU overhead.

Fixes: 64813541d575 (etnaviv: fix resource usage tracking across
different pipe_context's)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c