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:
parent
0696ea4bd6
commit
8da12a00ee
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue