summaryrefslogtreecommitdiff
path: root/x11perf.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-01-06 10:58:53 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-01-07 13:43:01 +0000
commit7f46d58f7523a07e9086b7c47534c37240d83409 (patch)
tree58b40bb316b7c95bbf95ed708b044f7ee11d1f08 /x11perf.h
parentc39d831d409537fce2f36c8672f908a7cc810519 (diff)
Add tests for ShmGetImage
Similar to GetImage and ShmPutImage, test the performance of retrieving pixel data from the X server without the overhead of copying the pixels. In the upper bound, using XShmGetImage, the performance will be limited by the RTT latency (x11perf -prop). However, comparing the scaling factors of XShmGetImage and XGetImage will give some insight into the driver efficiency. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'x11perf.h')
-rw-r--r--x11perf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/x11perf.h b/x11perf.h
index 1deb037..3cbb631 100644
--- a/x11perf.h
+++ b/x11perf.h
@@ -183,8 +183,11 @@ extern void DoGetImage ( XParms xp, Parms p, int reps );
extern void DoPutImage ( XParms xp, Parms p, int reps );
#ifdef MITSHM
extern int InitShmPutImage ( XParms xp, Parms p, int reps );
+extern int InitShmGetImage ( XParms xp, Parms p, int reps );
extern void DoShmPutImage ( XParms xp, Parms p, int reps );
+extern void DoShmGetImage ( XParms xp, Parms p, int reps );
extern void EndShmPutImage ( XParms xp, Parms p );
+extern void EndShmGetImage ( XParms xp, Parms p );
#endif
extern void MidCopyPix ( XParms xp, Parms p );
extern void EndCopyWin ( XParms xp, Parms p );