diff options
author | Imre Deak <imre.deak@intel.com> | 2013-01-07 21:47:35 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-01-17 22:07:56 +0100 |
commit | 0fa877965194fa79fe87944844185d90cfc35352 (patch) | |
tree | 0ba374c54fd3970efc9b11933518284c281cb228 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 56c844e539f1f6f5768c5f73f119e6f4aed9d320 (diff) | |
download | lwn-0fa877965194fa79fe87944844185d90cfc35352.tar.gz lwn-0fa877965194fa79fe87944844185d90cfc35352.zip |
drm/i915: use gtt_get_size() instead of open coding it
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 0b09361d37ae..35ecabc711ed 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -1565,6 +1565,8 @@ void i915_gem_free_all_phys_object(struct drm_device *dev); void i915_gem_release(struct drm_device *dev, struct drm_file *file); uint32_t +i915_gem_get_gtt_size(struct drm_device *dev, uint32_t size, int tiling_mode); +uint32_t i915_gem_get_gtt_alignment(struct drm_device *dev, uint32_t size, int tiling_mode, bool fenced); |