diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-02-13 22:20:17 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-02-20 01:00:53 -0500 |
commit | 827520ce06568f699dad275dcca61647cce08757 (patch) | |
tree | 707c9ab051ca1bd8a14f14fb153510c7fbf133c3 /drivers/gpu/drm/nouveau/nouveau_fence.h | |
parent | 60e5cb79cbd27a36836fc04177d7c323ee873563 (diff) |
drm/nouveau/fence: make internal hooks part of the context
A step towards being able to provide fences from other engines not
connected to PFIFO.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_fence.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_fence.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_fence.h b/drivers/gpu/drm/nouveau/nouveau_fence.h index fb0993c3dc39..a5c47e348e22 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fence.h +++ b/drivers/gpu/drm/nouveau/nouveau_fence.h | |||
@@ -29,6 +29,13 @@ struct nouveau_fence_chan { | |||
29 | struct list_head pending; | 29 | struct list_head pending; |
30 | struct list_head flip; | 30 | struct list_head flip; |
31 | 31 | ||
32 | int (*emit)(struct nouveau_fence *); | ||
33 | int (*sync)(struct nouveau_fence *, struct nouveau_channel *, | ||
34 | struct nouveau_channel *); | ||
35 | u32 (*read)(struct nouveau_channel *); | ||
36 | int (*emit32)(struct nouveau_channel *, u64, u32); | ||
37 | int (*sync32)(struct nouveau_channel *, u64, u32); | ||
38 | |||
32 | spinlock_t lock; | 39 | spinlock_t lock; |
33 | u32 sequence; | 40 | u32 sequence; |
34 | }; | 41 | }; |
@@ -39,12 +46,6 @@ struct nouveau_fence_priv { | |||
39 | void (*resume)(struct nouveau_drm *); | 46 | void (*resume)(struct nouveau_drm *); |
40 | int (*context_new)(struct nouveau_channel *); | 47 | int (*context_new)(struct nouveau_channel *); |
41 | void (*context_del)(struct nouveau_channel *); | 48 | void (*context_del)(struct nouveau_channel *); |
42 | int (*emit32)(struct nouveau_channel *, u64, u32); | ||
43 | int (*emit)(struct nouveau_fence *); | ||
44 | int (*sync32)(struct nouveau_channel *, u64, u32); | ||
45 | int (*sync)(struct nouveau_fence *, struct nouveau_channel *, | ||
46 | struct nouveau_channel *); | ||
47 | u32 (*read)(struct nouveau_channel *); | ||
48 | 49 | ||
49 | wait_queue_head_t waiting; | 50 | wait_queue_head_t waiting; |
50 | bool uevent; | 51 | bool uevent; |