summaryrefslogtreecommitdiff
path: root/src/sna/sna_trapezoids_precise.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-05-17 08:53:45 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-05-17 12:30:33 +0100
commit335ac8742e9eadcdf8f087b24f84c7df0fda31c0 (patch)
treeccd0b1048e8a988d16445c5b47a83509dd102261 /src/sna/sna_trapezoids_precise.c
parenta16a7e36ca3b22af2978695a57c2f2e9250529a7 (diff)
sna: Wrap CPU access for composite operations with sigtrap
Anytime we access a mmap() we need to be prepared for the kernel to send us a SIGBUS, but we were missing a few sigtraps around calls to pixman_fill and pixman_blt. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids_precise.c')
-rw-r--r--src/sna/sna_trapezoids_precise.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_trapezoids_precise.c b/src/sna/sna_trapezoids_precise.c
index f1532d31..c9838528 100644
--- a/src/sna/sna_trapezoids_precise.c
+++ b/src/sna/sna_trapezoids_precise.c
@@ -2386,6 +2386,7 @@ tor_blt_lerp32(struct sna *sna,
if (coverage == 0)
return;
+ sigtrap_assert_active();
ptr += box->y1 * stride + box->x1;
h = box->y2 - box->y1;