From 4a43aa81e27e8a651fde8a4761fd14bd8824d90c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 4 Apr 2013 10:53:55 +0100 Subject: [PATCH] sna: Restore bo->flush status for large bo Since we started discarding the flush flags on cached bo (in order to prevent DRI flush states leaking), we failed to preserve the flush flag for large bo (which uses it to keep batches trim and other hints). Signed-off-by: Chris Wilson --- src/sna/kgem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/kgem.c b/src/sna/kgem.c index c670dbbe..4136ce9a 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -3606,7 +3606,6 @@ struct kgem_bo *kgem_create_2d(struct kgem *kgem, assert(!bo->scanout); assert(bo->refcnt == 0); assert(bo->reusable); - assert(bo->flush == true); if (kgem->gen < 040) { if (bo->pitch < pitch) { @@ -3640,6 +3639,7 @@ struct kgem_bo *kgem_create_2d(struct kgem *kgem, bo->pitch, bo->tiling, bo->handle, bo->unique_id)); assert(bo->pitch*kgem_aligned_height(kgem, height, bo->tiling) <= kgem_bo_size(bo)); bo->refcnt = 1; + bo->flush = true; return bo; }