etnaviv: stop repeatedly resolving an unchanged resource into its scanout prime buffer
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 12 Apr 2017 14:13:36 +0000 (16:13 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 14 Apr 2017 22:15:27 +0000 (00:15 +0200)
commitf30aab76961564e2f0ce34af7d7b38ec43535877
tree89daf2ffff1672d8fb67e5ac3e68035b59c2570d
parentd7a1f01db36f32f8fbf47535d3969bcb57dae91d
etnaviv: stop repeatedly resolving an unchanged resource into its scanout prime buffer

Before resolving a resource into its scanout prime buffer, check that
the prime resource is actually older. If it is not, the resolve is an
expensive no-op, and we better skip it.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c