diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-17 21:42:48 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-17 21:42:48 +0000 |
commit | 85213d5d450eec5696496128c1acecb5ca13c53b (patch) | |
tree | fa9acc0493b7e0d1997ff1b5c187d4f2fbd149b3 /src | |
parent | c5b901a635a9c8c74017682d17cfcd93031907b4 (diff) |
sna: Don't remove the flush flag for userptr bo
This flag is far too overload with meaning, but for now this prevents us
attempting to call free() on a SHM segment.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/kgem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index a01da885..e0d864da 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -1752,7 +1752,8 @@ static void __kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo) kgem_bo_move_to_snoop(kgem, bo); return; } - bo->flush = false; + if (!IS_USER_MAP(bo->map)) + bo->flush = false; if (bo->scanout) { kgem_bo_move_to_scanout(kgem, bo); |