summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-01 10:53:07 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-01 11:07:50 +0100
commit35b1ac138002c206a6d6b866d49a0d73705dd3ac (patch)
tree7d11e0a67af29e4024e86b425e250c4362333dd2 /src/sna/sna.h
parente625c02e6266403fcd8a72ccce2c6c6291e2e5fc (diff)
sna: After an operation on the CPU, prefer not to use the GPU
A nasty habit of applications is to fill an area, only to read it back with GetImage, render locally and replace with PutImage. This causes a readback of an active bo everytime, so let's try to mitigate that by preferring not to use the GPU after a forced readback. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 66ee6c00..9d365439 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -140,6 +140,7 @@ struct sna_pixmap {
uint8_t undamaged :1;
uint8_t create :3;
uint8_t header :1;
+ uint8_t cpu :1;
};
struct sna_glyph {