diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-27 07:55:09 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-27 08:35:40 +0100 |
commit | 11cc397cb1cded40f7ab43c1add3fd00b97c6bdc (patch) | |
tree | 9b710341d67605a81989c969dee087f55061efcf /src/sna/sna.h | |
parent | 9417f13cc4074ea6e5dad88e054337e93b461a4c (diff) |
sna: Preallocate cursors
We need to avoid all allocations within the signal handlers, so
preallocate the cursor structs.
Bugzilla: 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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index fc73f7e6..1e23ac1e 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -298,6 +298,8 @@ struct sna { unsigned max_size; bool use_gtt; + int num_stash; + struct sna_cursor *stash; void *scratch; } cursor; |