etnaviv: resolve tile status when flushing resource
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 12 Apr 2017 14:13:37 +0000 (16:13 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 14 Apr 2017 22:15:30 +0000 (00:15 +0200)
commitdda956340ce9f7d04866eb6909455f24fae94724
tree8a3bffeaa9a9ca3872e8d4f9e66cbd144475fd6c
parentf30aab76961564e2f0ce34af7d7b38ec43535877
etnaviv: resolve tile status when flushing resource

When passing render buffers from EGL clients to a wayland compositor,
the resource tile status must be resolved because otherwise the tile
status is lost in the transfer and cleared parts of the buffer will
contain old contents.

The same applies when sampling directly from a renderable resource.

lst: Add seqno tracking, to skip flush when not needed.

Fixes: aadcb5e94b35 ("etnaviv: enable TS, but disable autodisable")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
src/gallium/drivers/etnaviv/etnaviv_resource.h