diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-16 11:12:01 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-16 11:12:01 +0000 |
commit | b306dc20e3e92a62f60c4155e18cdcba650b1a62 (patch) | |
tree | 4b0baf7e8d58ab3e7be44120dc6214c181fe9325 /src/sna/sna_dri2.c | |
parent | e042b5d82558293ef06847f4833efc91a95b5d40 (diff) |
sna: Relax tiling requirements to cope with kernel errors
If the kernel can't accept our tiling requirements, don't fret until we
actually need that fence! If we do, then we either stop tiling with the
buffer or we use another.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_dri2.c')
-rw-r--r-- | src/sna/sna_dri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c index afd26037..18ff264e 100644 --- a/src/sna/sna_dri2.c +++ b/src/sna/sna_dri2.c @@ -528,7 +528,7 @@ static struct kgem_bo *sna_pixmap_set_dri(struct sna *sna, assert(priv->gpu_bo); assert(priv->gpu_bo->proxy == NULL); - if (!sna->kgem.can_fence) { + if (!kgem_bo_is_fenced(&sna->kgem, priv->gpu_bo)) { if (priv->gpu_bo->tiling && !sna_pixmap_change_tiling(pixmap, I915_TILING_NONE)) { DBG(("%s: failed to discard tiling (%d) for DRI2 protocol\n", __FUNCTION__, priv->gpu_bo->tiling)); |