[Intel-gfx] [PATCH v6 4/6] drm/i915: Remove unnecessary ggtt_offset_bias from i915_gem_context

Chris Wilson chris at chris-wilson.co.uk
Fri Jul 27 10:30:23 UTC 2018


Quoting Jakub Bartmiński (2018-07-27 09:53:48)
> Since ggtt_offset_bias is now stored in ggtt.pin_bias, it is duplicated
> inside i915_gem_context, and can instead be accessed directly from ggtt.
> 
> v3:
> Added a helper function to retrieve the ggtt.pin_bias from the vma.
> 
> v4:
> Moved the helper function to the previous patch in the series.
> Dropped the bias from intel_ring_pin. This introduces a slight functional
> change since we are always pinning the ring a bit higher if GuC is present
> even though we don't really need to.
> 
> Signed-off-by: Jakub Bartmiński <jakub.bartminski at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Michał Winiarski <michal.winiarski at intel.com>
> Cc: Michal Wajdeczko <michal.wajdeczko at intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the Intel-gfx mailing list