xorg: fix exa finish access
authorJerome Glisse <jglisse@redhat.com>
Fri, 8 Feb 2013 23:57:42 +0000 (18:57 -0500)
committerJerome Glisse <jglisse@redhat.com>
Sat, 9 Feb 2013 00:01:19 +0000 (19:01 -0500)
The exa core will already set the pointer to NULL prior calling
the callback function. So don't bail out in the callback if it's
already NULL.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/state_trackers/xorg/xorg_exa.c

index f010be6522706a1f5a37840d9915faf8e9959560..3e764f8a7f5ed620c613d71f1ddf0c7c4e4ff6b0 100644 (file)
@@ -318,7 +318,7 @@ ExaFinishAccess(PixmapPtr pPix, int index)
     if (!priv)
        return;
 
-    if (!priv->map_transfer || pPix->devPrivate.ptr == NULL)
+    if (!priv->map_transfer)
        return;
 
     exa_debug_printf("ExaFinishAccess %d\n", index);