OSDN Git Service

drm/i915: Simplify relocate_entry_gtt() and make 64-bit safe
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 10 Aug 2014 05:29:11 +0000 (06:29 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 12:16:04 +0000 (14:16 +0200)
commit906843c3a1acc36407e500a073679c4207d307cd
tree23d6d6803783f4f5525b2dd033dc881787a309c6
parent060e82c6f4ccf678decffb28ba8301ca9220a995
drm/i915: Simplify relocate_entry_gtt() and make 64-bit safe

Even though we should not try to use 4+GiB GTTs on 32-bit systems, by
using a local variable we can future proof the code whilst making it
easier to read.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Appease checkpatch a bit.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c