aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/etnaviv/etnaviv_gpu.h
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-11-29 14:49:04 +0100
committerLucas Stach <l.stach@pengutronix.de>2018-02-12 16:30:58 +0100
commit8bc4d885bd42e9a1d47a53aa4efbb818597ef9a0 (patch)
tree21665e3f10ed8eb49a87f893b0de3b95e1f68ffa /drivers/gpu/drm/etnaviv/etnaviv_gpu.h
parentdrm/etnaviv: add missing major features field to debugfs (diff)
downloadlinux-dev-8bc4d885bd42e9a1d47a53aa4efbb818597ef9a0.tar.xz
linux-dev-8bc4d885bd42e9a1d47a53aa4efbb818597ef9a0.zip
drm/etnaviv: track fences by IDR instead of seqno
This moves away from using the internal seqno as the userspace fence reference. By moving to a generic ID, we can later replace the internal fence by something different than the etnaviv seqno fence. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_gpu.h')
-rw-r--r--drivers/gpu/drm/etnaviv/etnaviv_gpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h
index 7623905210dc..0170eb0a0923 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.h
+++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.h
@@ -128,6 +128,7 @@ struct etnaviv_gpu {
u32 idle_mask;
/* Fencing support */
+ struct idr fence_idr;
u32 next_fence;
u32 active_fence;
u32 completed_fence;