sna: Wrap GetImage with sigtrap

Mostly for completeness, though it is still remotely possibly for the
dst pointer to raise a SIGBUS (just less likely since it is not a i915
bo).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-05-18 09:18:41 +01:00
parent d4c82a16bc
commit fe64672c83
1 changed files with 2 additions and 1 deletions

View File

@ -17072,7 +17072,7 @@ sna_get_image__fast(PixmapPtr pixmap,
if (priv == NULL || priv->gpu_damage == NULL)
return false;
if (priv->clear) {
if (priv->clear && sigtrap_get() == 0) {
int w = region->extents.x2 - region->extents.x1;
int h = region->extents.y2 - region->extents.y1;
int pitch = PixmapBytePad(w, pixmap->drawable.depth);
@ -17098,6 +17098,7 @@ sna_get_image__fast(PixmapPtr pixmap,
priv->clear_color);
}
sigtrap_put();
return true;
}