summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-02-13 08:54:04 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-02-13 08:54:04 +0000
commit636b52913cac10e691834a699cff10fb94d395fa (patch)
tree483f3c3fdb4c36572ac7d6f830c63a9794fbfba5
parentb2cd809fe2b06325a4572865ec7ca5cfbfcfced2 (diff)
sna: Also mark imported Prime objects as unclean
Since they have an external source, we cannot be sure of their busyness or other GPU state and so we need to treat them as unclean. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/kgem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index f441396c..61129526 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -4792,8 +4792,9 @@ struct kgem_bo *kgem_create_for_name(struct kgem *kgem, uint32_t name)
bo->unique_id = kgem_get_unique_id(kgem);
bo->tiling = tiling.tiling_mode;
- bo->reusable = false;
bo->prime = true;
+ bo->reusable = false;
+ kgem_bo_unclean(kgem, bo);
debug_alloc__bo(kgem, bo);
return bo;
@@ -6915,7 +6916,6 @@ uint32_t kgem_bo_flink(struct kgem *kgem, struct kgem_bo *bo)
* party, we track the lifetime accurately.
*/
bo->reusable = false;
-
kgem_bo_unclean(kgem, bo);
return flink.name;