diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-03-16 11:38:46 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-03-16 20:28:29 +0000 |
commit | 0b6bc81dbd6dd2f6132c623e9c3df33fe3397e94 (patch) | |
tree | ecf82337e044917484aeb302d7b7b3493398a678 /drivers/gpu/drm/i915/i915_vma.h | |
parent | bd9a4dbc84f509b00424f39642013c9efd0beeea (diff) | |
download | lwn-0b6bc81dbd6dd2f6132c623e9c3df33fe3397e94.tar.gz lwn-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.h | 1 |
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" |