diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-07-20 04:19:14 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-07-24 11:51:04 +0300 |
commit | 60cdadace3208001b4e24a1a4b102f767d5df3c2 (patch) | |
tree | 89c4763e80e0a3287239462f54808f13247159e7 /drivers/gpu/drm/nouveau/nv10_fence.c | |
parent | c47fceca2ef3718cee09bbf2941de44b3701c873 (diff) | |
download | linux-60cdadace3208001b4e24a1a4b102f767d5df3c2.tar.xz |
drm/nouveau/fence: use NVIDIA's headers for emit()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv10_fence.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv10_fence.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv10_fence.c b/drivers/gpu/drm/nouveau/nv10_fence.c index b5117b0c71c1..8e3f034d6e74 100644 --- a/drivers/gpu/drm/nouveau/nv10_fence.c +++ b/drivers/gpu/drm/nouveau/nv10_fence.c @@ -27,13 +27,15 @@ #include <nvif/push006c.h> +#include <nvhw/class/cl006e.h> + int nv10_fence_emit(struct nouveau_fence *fence) { struct nvif_push *push = fence->channel->chan.push; int ret = PUSH_WAIT(push, 2); if (ret == 0) { - PUSH_NVSQ(push, NV06E, NV10_SUBCHAN_REF_CNT, fence->base.seqno); + PUSH_MTHD(push, NV06E, SET_REFERENCE, fence->base.seqno); PUSH_KICK(push); } return ret; |