提交 87a01e82 编写于 作者: C Chris Wilson 提交者: Daniel Vetter

drm/i915: Suppress a WARN on reading an object back for a GPU hang

Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: NMika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 8ae62dc6
...@@ -577,7 +577,10 @@ i915_error_object_create(struct drm_i915_private *dev_priv, ...@@ -577,7 +577,10 @@ i915_error_object_create(struct drm_i915_private *dev_priv,
if (dst == NULL) if (dst == NULL)
return NULL; return NULL;
dst->gtt_offset = i915_gem_obj_offset(src, vm); if (i915_gem_obj_bound(src, vm))
dst->gtt_offset = i915_gem_obj_offset(src, vm);
else
dst->gtt_offset = -1;
reloc_offset = dst->gtt_offset; reloc_offset = dst->gtt_offset;
use_ggtt = (src->cache_level == I915_CACHE_NONE && use_ggtt = (src->cache_level == I915_CACHE_NONE &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册