提交 7ace7ef2 编写于 作者: B Ben Widawsky 提交者: Daniel Vetter

drm/i915: WARN_ON failed map_and_fenceable

I just noticed in our code we don't really check the assertion, and
given some of the code I am changing in this area, I feel a WARN is very
nice to have.
Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
[danvet: s/&/&&/ to fix typo on the check.]
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 35c7ab42
...@@ -3211,6 +3211,8 @@ i915_gem_object_bind_to_vm(struct drm_i915_gem_object *obj, ...@@ -3211,6 +3211,8 @@ i915_gem_object_bind_to_vm(struct drm_i915_gem_object *obj,
if (i915_is_ggtt(vm)) if (i915_is_ggtt(vm))
obj->map_and_fenceable = mappable && fenceable; obj->map_and_fenceable = mappable && fenceable;
WARN_ON(map_and_fenceable && !obj->map_and_fenceable);
trace_i915_vma_bind(vma, map_and_fenceable); trace_i915_vma_bind(vma, map_and_fenceable);
i915_gem_verify_gtt(dev); i915_gem_verify_gtt(dev);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册