drm: etnaviv: use previous GPU pipe state when pipe switching
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 21 Jan 2016 15:20:30 +0000 (15:20 +0000)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 7 Mar 2016 14:36:57 +0000 (15:36 +0100)
commit90747b9511d14a2eb6c7dbd78ea9251e3b2b092a
tree7730cd5a471a58225f16652c35d9ccea50d6327c
parent8581d8149750e19fc363ad93327f4382b26959f9
drm: etnaviv: use previous GPU pipe state when pipe switching

Use the previous GPU pipe state when deciding which GPU caches should
be flushed prior to switching the current pipe.  This avoids infering
what the previously selected pipe was, and potentially flushing the
wrong caches.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_buffer.c