summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/etnaviv/etnaviv_buffer.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2016-01-21 16:20:19 +0100
committerLucas Stach <l.stach@pengutronix.de>2016-03-07 15:36:54 +0100
commitf60863116b4026713fba1810927f8639bfd6ae80 (patch)
treef2513624c71858239572915246966f20c3a77473 /drivers/gpu/drm/etnaviv/etnaviv_buffer.c
parentdrm: etnaviv: extract arming of semaphore (diff)
downloadlinux-f60863116b4026713fba1810927f8639bfd6ae80.tar.xz
linux-f60863116b4026713fba1810927f8639bfd6ae80.zip
drm: etnaviv: track current execution state
Add tracking of the current execution state (iow, active GPU pipe). 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/etnaviv_buffer.c')
-rw-r--r--drivers/gpu/drm/etnaviv/etnaviv_buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_buffer.c b/drivers/gpu/drm/etnaviv/etnaviv_buffer.c
index cfd08ef33eab..950db38c1324 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_buffer.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_buffer.c
@@ -261,6 +261,7 @@ void etnaviv_buffer_queue(struct etnaviv_gpu *gpu, unsigned int event,
if (gpu->switch_context) {
etnaviv_cmd_select_pipe(buffer, cmdbuf->exec_state);
+ gpu->exec_state = cmdbuf->exec_state;
gpu->switch_context = false;
}