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

drm/i915/selftests: Mark up write into scratch vma

We correctly attach the exclusive fetch for the scratch object when
emitting a request that writes into it, but for completeness we should
also declared the write to i915_vma_move_to_active()
Reported-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180629133717.11761-1-chris@chris-wilson.co.uk
上级 45720959
...@@ -175,7 +175,7 @@ static int gpu_fill(struct drm_i915_gem_object *obj, ...@@ -175,7 +175,7 @@ static int gpu_fill(struct drm_i915_gem_object *obj,
i915_vma_unpin(batch); i915_vma_unpin(batch);
i915_vma_close(batch); i915_vma_close(batch);
i915_vma_move_to_active(vma, rq, 0); i915_vma_move_to_active(vma, rq, EXEC_OBJECT_WRITE);
i915_vma_unpin(vma); i915_vma_unpin(vma);
reservation_object_lock(obj->resv, NULL); reservation_object_lock(obj->resv, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册