diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2018-05-08 12:39:47 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2018-05-18 07:01:26 +0200 |
commit | 0db912af8f5ad4fa4dc08a9c8e411a10953c5403 (patch) | |
tree | 10f8e13d89ac5a9de5bd3002d994cb10b2bcf41a /drivers/gpu/drm/nouveau/nouveau_vmm.h | |
parent | drm/nouveau/gem: lookup VMAs for buffers referenced by pushbuf ioctl (diff) | |
download | linux-0db912af8f5ad4fa4dc08a9c8e411a10953c5403.tar.xz linux-0db912af8f5ad4fa4dc08a9c8e411a10953c5403.zip |
drm/nouveau/gem: attach fences to VMAs to track GPU usage
An upcoming patch will use these to fix issues related to the deferred
unmapping of GEM objects.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_vmm.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_vmm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_vmm.h b/drivers/gpu/drm/nouveau/nouveau_vmm.h index 5c31f43678d3..7e3b118cf7c4 100644 --- a/drivers/gpu/drm/nouveau/nouveau_vmm.h +++ b/drivers/gpu/drm/nouveau/nouveau_vmm.h @@ -11,6 +11,8 @@ struct nouveau_vma { u64 addr; struct nouveau_mem *mem; + + struct nouveau_fence *fence; }; struct nouveau_vma *nouveau_vma_find(struct nouveau_bo *, struct nouveau_vmm *); |