aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_vma.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-03-16 11:38:46 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-03-16 20:28:29 +0000
commit0b6bc81dbd6dd2f6132c623e9c3df33fe3397e94 (patch)
treeecf82337e044917484aeb302d7b7b3493398a678 /drivers/gpu/drm/i915/i915_vma.h
parentdrm/i915: Remove manual save/resume of fence register state (diff)
downloadlinux-dev-0b6bc81dbd6dd2f6132c623e9c3df33fe3397e94.tar.xz
linux-dev-0b6bc81dbd6dd2f6132c623e9c3df33fe3397e94.zip
drm/i915/gt: Allocate i915_fence_reg array
Since the number of fence regs can vary dramactically between platforms, allocate the array on demand so we don't waste as much space. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200316113846.4974-4-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_vma.h')
-rw-r--r--drivers/gpu/drm/i915/i915_vma.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_vma.h b/drivers/gpu/drm/i915/i915_vma.h
index 2764c277326f..b958ad07f212 100644
--- a/drivers/gpu/drm/i915/i915_vma.h
+++ b/drivers/gpu/drm/i915/i915_vma.h
@@ -30,6 +30,7 @@
#include <drm/drm_mm.h>
+#include "gt/intel_ggtt_fencing.h"
#include "gem/i915_gem_object.h"
#include "i915_gem_gtt.h"