drm/i915: check context reset stats before relocations
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 26 Nov 2013 14:14:33 +0000 (16:14 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 Dec 2013 12:20:31 +0000 (13:20 +0100)
commitd299cce76e001406df40c4ff712b33fccbce1222
treed54530b66eaf7f365f6418ad7d1aa82c27710db0
parent70903c3ba8fa5ad391d1519c60666a389e4be597
drm/i915: check context reset stats before relocations

Doing it early prevents moving and relocating objects in vain
for contexts that won't get any GPU time.

Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c