projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4572095
)
drm/i915/selftests: Mark up write into scratch vma
author
Chris Wilson
<
[email protected]
>
Fri, 29 Jun 2018 13:37:16 +0000
(14:37 +0100)
committer
Chris Wilson
<
[email protected]
>
Fri, 29 Jun 2018 19:52:46 +0000
(20:52 +0100)
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: Tvrtko Ursulin <
[email protected]
>
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Tvrtko Ursulin <
[email protected]
>
Reviewed-by: Tvrtko Ursulin <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/selftests/i915_gem_context.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/selftests/i915_gem_context.c
b/drivers/gpu/drm/i915/selftests/i915_gem_context.c
index c0c26fae45c7109ef4256a71c551dbb7359f05e4..cc848ceeb3c316b692457b8cff6466fd47f8f5da 100644
(file)
--- a/
drivers/gpu/drm/i915/selftests/i915_gem_context.c
+++ b/
drivers/gpu/drm/i915/selftests/i915_gem_context.c
@@
-175,7
+175,7
@@
static int gpu_fill(struct drm_i915_gem_object *obj,
i915_vma_unpin(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);
reservation_object_lock(obj->resv, NULL);