diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-03-16 14:38:46 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-03-16 23:28:29 +0300 |
commit | 0b6bc81dbd6dd2f6132c623e9c3df33fe3397e94 (patch) | |
tree | ecf82337e044917484aeb302d7b7b3493398a678 /drivers/gpu/drm/i915/gt/intel_ggtt_fencing.h | |
parent | bd9a4dbc84f509b00424f39642013c9efd0beeea (diff) | |
download | linux-0b6bc81dbd6dd2f6132c623e9c3df33fe3397e94.tar.xz |
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/gt/intel_ggtt_fencing.h')
-rw-r--r-- | drivers/gpu/drm/i915/gt/intel_ggtt_fencing.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_ggtt_fencing.h b/drivers/gpu/drm/i915/gt/intel_ggtt_fencing.h index 3b3eb5bf1b75..9850f6a85d2a 100644 --- a/drivers/gpu/drm/i915/gt/intel_ggtt_fencing.h +++ b/drivers/gpu/drm/i915/gt/intel_ggtt_fencing.h @@ -64,6 +64,7 @@ void i915_gem_object_save_bit_17_swizzle(struct drm_i915_gem_object *obj, struct sg_table *pages); void intel_ggtt_init_fences(struct i915_ggtt *ggtt); +void intel_ggtt_fini_fences(struct i915_ggtt *ggtt); void intel_gt_init_swizzling(struct intel_gt *gt); |