summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-04-27 07:55:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-04-27 08:35:40 +0100
commit9417f13cc4074ea6e5dad88e054337e93b461a4c (patch)
treee99d2f0b5ebfb4bc0d3a6c1442546695fa7b7ed1 /src/sna/sna.h
parent795cebf053e8457b998522ab7eea80b0819cb46b (diff)
sna: Preallocate pwrite scratch buffer for old fashioned cursor updates
We need to avoid all allocations within the signal handlers, so preallocate the transfer buffer. References: https://bugs.freedesktop.org/show_bug.cgi?id=77975 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index bd6eb491..fc73f7e6 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -297,6 +297,8 @@ struct sna {
unsigned max_size;
bool use_gtt;
+
+ void *scratch;
} cursor;
struct sna_dri {