diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-11-21 17:28:46 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-11-21 17:28:46 +0000 |
commit | 8da12a00ee653510e1f1a6fecb28dbb36faa8400 (patch) | |
tree | b38b422a7865a1e0813e9574f7ccaaf24efb8a9c /src/sna/sna_render.c | |
parent | 0696ea4bd601ed823dbded03eaef6f316df2a5e8 (diff) |
sna: Skip uploading unintialiased pixmap data
References: https://bugs.freedesktop.org/show_bug.cgi?id=47597
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_render.c')
-rw-r--r-- | src/sna/sna_render.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index 47bc19d9..88b23823 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -497,6 +497,9 @@ static struct kgem_bo *upload(struct sna *sna, priv = sna_pixmap(pixmap); if (priv) { + if (priv->cpu_damage == NULL) + return NULL; + /* As we know this box is on the CPU just fixup the shadow */ if (priv->mapped) { pixmap->devPrivate.ptr = NULL; |