]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove bogus test for a present execbuffer
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Nov 2012 15:30:42 +0000 (15:30 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Nov 2012 16:45:03 +0000 (17:45 +0100)
commit46136eba93c4d79e004a28e2ae93808575bfed2c
tree667a07555395601d0666c1fda1c8f16e7cb07217
parentc64c16bf9545564a15eb07dd2d2e957e0226414f
drm/i915: Remove bogus test for a present execbuffer

The intention of checking obj->gtt_offset!=0 is to verify that the
target object was listed in the execbuffer and had been bound into the
GTT. This is guarranteed by the earlier rearrangement to split the
execbuffer operation into reserve and relocation phases and then
verified by the check that the target handle had been processed during
the reservation phase.

However, the actual checking of obj->gtt_offset==0 is bogus as we can
indeed reference an object at offset 0. For instance, the framebuffer
installed by the BIOS often resides at offset 0 - causing EINVAL as we
legimately try to render using the stolen fb.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c