diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-03 14:54:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-04 09:51:26 +0100 |
commit | a5bf389908934aa4f9493a4a35b18e4aec9c8103 (patch) | |
tree | 5bee2bd95d4585b2c73088151646d4bb6c89f45c /src/sna/kgem.c | |
parent | 5287660aafe45859c07874c22dca99c1ff5e555a (diff) |
sna: Mark the entire userptr proxy chain as flush/non-reusable
Fixes cache bookkeepping when mixing userptr uploads.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.c')
-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 29a5dfc9..8d59a2ec 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -1909,6 +1909,7 @@ search_snoop_cache(struct kgem *kgem, unsigned int num_pages, unsigned flags) assert(bo->refcnt == 0); assert(bo->snoop); assert(!bo->scanout); + assert(!bo->purged); assert(bo->proxy == NULL); assert(bo->tiling == I915_TILING_NONE); assert(bo->rq == NULL); |