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>
This commit is contained in:
Chris Wilson 2012-11-21 17:28:46 +00:00
parent 0696ea4bd6
commit 8da12a00ee
1 changed files with 3 additions and 0 deletions

View File

@ -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;