OSDN Git Service

drm/i915: Clarify obj->map_and_fenceable
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Feb 2015 13:58:43 +0000 (13:58 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 27 Feb 2015 18:01:48 +0000 (19:01 +0100)
commite8dec1dde016258af7c8a2ce9ddfb7243176a344
treecbfdd630bb404d72bd712321be03bac98ded4ff1
parent9a8f0a1290993c86c4e35756a2624bfe461f9036
drm/i915: Clarify obj->map_and_fenceable

For an object right on the boundary of mappable space, as the fenceable
size is stricly greater than the actual size, its fence region may extend
out of mappable space.

Note that only pnv/g33 has fence_size > obj.size and an unmappable
range in the gtt, and there alignment constraints prevent bad things
from happening.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Clarify why this shouldn't change anything as per the
discussion on intel-gfx.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c