summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2013-01-07 20:47:35 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-01-17 22:07:56 +0100
commit0fa877965194fa79fe87944844185d90cfc35352 (patch)
tree0ba374c54fd3970efc9b11933518284c281cb228 /drivers/gpu/drm/i915/i915_gem.c
parentdrm/i915: merge {i965, sandybridge}_write_fence_reg() (diff)
downloadlinux-0fa877965194fa79fe87944844185d90cfc35352.tar.xz
linux-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_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 718574eb66de..313bdbaba3cd 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1435,7 +1435,7 @@ i915_gem_release_mmap(struct drm_i915_gem_object *obj)
obj->fault_mappable = false;
}
-static uint32_t
+uint32_t
i915_gem_get_gtt_size(struct drm_device *dev, uint32_t size, int tiling_mode)
{
uint32_t gtt_size;