etnaviv: only flush resource to self if no scanout buffer exists
authorLucas Stach <l.stach@pengutronix.de>
Mon, 26 Jun 2017 10:25:08 +0000 (12:25 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Mon, 26 Jun 2017 18:06:01 +0000 (20:06 +0200)
commit28550c787595f04453d2a39f46f570a891368fcf
treec3e9a149ef9f5f59201ed9aefddb3c30c462ade9
parentd8b2ccdb880f95a15437c384257e6aeea95dba3c
etnaviv: only flush resource to self if no scanout buffer exists

Currently a resource flush may trigger a self resolve, even if a scanout buffer
exists, but is up to date. If a scanout buffer exists we only ever want to
flush the resource to the scanout buffer. This fixes a performance regression.

Fixes: dda956340ce9 (etnaviv: resolve tile status when flushing resource)
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c