提交 f394940b 编写于 作者: C Chris Wilson

drm/i915: Remove redundant deletion of obj->gpu_write_list

At that point as the object is no longer in any GPU write domain it must
not be on the list, so the list_del() is redundant.
Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
上级 5cdf5881
...@@ -3857,8 +3857,6 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data, ...@@ -3857,8 +3857,6 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
if (obj->write_domain) if (obj->write_domain)
list_move_tail(&obj_priv->gpu_write_list, list_move_tail(&obj_priv->gpu_write_list,
&dev_priv->mm.gpu_write_list); &dev_priv->mm.gpu_write_list);
else
list_del_init(&obj_priv->gpu_write_list);
trace_i915_gem_object_change_domain(obj, trace_i915_gem_object_change_domain(obj,
obj->read_domains, obj->read_domains,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册