diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-11 16:39:45 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-12 02:16:49 +0000 |
commit | a3c42565a8f557b2e7f7ff7bfa45b13b606f2968 (patch) | |
tree | 13330caa23d7a116afcb43492930c593f397b03a /src/sna/sna_video.c | |
parent | c64a9d0683e047a7eb041df78db746f6dd387b5e (diff) |
sna: Store damage-all in the low bit of the damage pointer
Avoid the function call overhead by inspecting the low bit to see if it
is all-damaged already.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video.c')
-rw-r--r-- | src/sna/sna_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_video.c b/src/sna/sna_video.c index d6d56f40..7b759a7e 100644 --- a/src/sna/sna_video.c +++ b/src/sna/sna_video.c @@ -472,7 +472,7 @@ sna_video_copy_data(struct sna *sna, } /* copy data */ - dst = kgem_bo_map(&sna->kgem, frame->bo, PROT_READ | PROT_WRITE); + dst = kgem_bo_map(&sna->kgem, frame->bo); if (dst == NULL) return FALSE; |