xf86-video-intel: src/sna/kgem.c

Chris Wilson ickle at kemper.freedesktop.org
Sat Feb 13 08:54:58 UTC 2016


 src/sna/kgem.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 636b52913cac10e691834a699cff10fb94d395fa
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat Feb 13 08:54:04 2016 +0000

    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 at chris-wilson.co.uk>

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index f441396..6112952 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;


More information about the xorg-commit mailing list