diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-13 01:18:59 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-13 01:38:09 +0000 |
commit | d02dc0fd84194b6acc607d17e4396dd1fdc681f8 (patch) | |
tree | 7a4ca89d15638d4cf6df8ed49f962878bb9b509b | |
parent | 7472db8c8c9994798ea36de1ce2f51725d8b387a (diff) |
sna: Set the refcnt on the replacement bo
The paranoia wasn't in vain.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 3d2705c3..b76a180a 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -2571,6 +2571,7 @@ kgem_replace_bo(struct kgem *kgem, } dst->pitch = pitch; dst->unique_id = kgem_get_unique_id(kgem); + dst->refcnt = 1; kgem_set_mode(kgem, KGEM_BLT); if (!kgem_check_batch(kgem, 8) || |