summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/etnaviv/state_3d.xml.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2016-01-21 16:20:25 +0100
committerLucas Stach <l.stach@pengutronix.de>2016-03-07 15:36:56 +0100
commit8581d8149750e19fc363ad93327f4382b26959f9 (patch)
treead2c934857bcb1b46b14f252d7d9e93761a44704 /drivers/gpu/drm/etnaviv/state_3d.xml.h
parentdrm: etnaviv: track current execution state (diff)
downloadlinux-8581d8149750e19fc363ad93327f4382b26959f9.tar.xz
linux-8581d8149750e19fc363ad93327f4382b26959f9.zip
drm: etnaviv: flush all GPU caches when stopping GPU
Flush the GPU caches to ensure that any dirty data is pushed out before stopping the front end. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/state_3d.xml.h')
-rw-r--r--drivers/gpu/drm/etnaviv/state_3d.xml.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/state_3d.xml.h b/drivers/gpu/drm/etnaviv/state_3d.xml.h
new file mode 100644
index 000000000000..d7146fd13943
--- /dev/null
+++ b/drivers/gpu/drm/etnaviv/state_3d.xml.h
@@ -0,0 +1,9 @@
+#ifndef STATE_3D_XML
+#define STATE_3D_XML
+
+/* This is a cut-down version of the state_3d.xml.h file */
+
+#define VIVS_TS_FLUSH_CACHE 0x00001650
+#define VIVS_TS_FLUSH_CACHE_FLUSH 0x00000001
+
+#endif /* STATE_3D_XML */