diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-14 12:50:54 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-14 17:02:42 +0000 |
commit | cf860da1c78244036c59edf934b312cc1367e8aa (patch) | |
tree | 988bced518b534afe0671129abf55ddb10c7b64e /src/sna/sna.h | |
parent | e4ad4477815abe31b1a2323673da86a6def2f246 (diff) |
sna: Apply PutImage optimisations to move-to-cpu
We can replace the custom heuristics for PutImage by applying them to
the common path, where hopefully they are equally valid.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r-- | src/sna/sna.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index 6fe9e5e3..bddeed49 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -111,6 +111,7 @@ struct sna_pixmap { struct kgem_bo *gpu_bo, *cpu_bo; struct sna_damage *gpu_damage, *cpu_damage; void *ptr; +#define PTR(ptr) ((void*)((uintptr_t)(ptr) & ~1)) struct list list; @@ -125,11 +126,11 @@ struct sna_pixmap { #define PIN_SCANOUT 0x1 #define PIN_DRI 0x2 #define PIN_PRIME 0x4 + uint8_t create :5; uint8_t mapped :1; uint8_t shm :1; uint8_t clear :1; uint8_t undamaged :1; - uint8_t create :3; uint8_t header :1; uint8_t cpu :1; }; |