summaryrefslogtreecommitdiff
path: root/do_tests.c
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 /do_tests.c
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 'do_tests.c')
-rw-r--r--do_tests.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/do_tests.c b/do_tests.c
index e4f3cb1..5d30dc5 100644
--- a/do_tests.c
+++ b/do_tests.c
@@ -1210,6 +1210,30 @@ Test test[] = {
InitShmPutImage, DoShmPutImage, MidCopyPix, EndShmPutImage,
V1_4FEATURE, ROP, 0,
{4, 500, "XY"}},
+ {"-shmget10", "ShmGetImage 10x10 square", NULL,
+ InitShmGetImage, DoShmGetImage, NullProc, EndShmGetImage,
+ V1_2FEATURE, ROP, 0,
+ {4, 10}},
+ {"-shmget100", "ShmGetImage 100x100 square", NULL,
+ InitShmGetImage, DoShmGetImage, NullProc, EndShmGetImage,
+ V1_2FEATURE, ROP, 0,
+ {4, 100}},
+ {"-shmget500", "ShmGetImage 500x500 square", NULL,
+ InitShmGetImage, DoShmGetImage, NullProc, EndShmGetImage,
+ V1_2FEATURE, ROP, 0,
+ {4, 500}},
+ {"-shmgetxy10", "ShmGetImage XY 10x10 square", NULL,
+ InitShmGetImage, DoShmGetImage, NullProc, EndShmGetImage,
+ V1_4FEATURE, ROP, 0,
+ {4, 10, "XY"}},
+ {"-shmgetxy100", "ShmGetImage XY 100x100 square", NULL,
+ InitShmGetImage, DoShmGetImage, NullProc, EndShmGetImage,
+ V1_4FEATURE, ROP, 0,
+ {4, 100, "XY"}},
+ {"-shmgetxy500", "ShmGetImage XY 500x500 square", NULL,
+ InitShmGetImage, DoShmGetImage, NullProc, EndShmGetImage,
+ V1_4FEATURE, ROP, 0,
+ {4, 500, "XY"}},
#endif
{"-getimage10", "GetImage 10x10 square", NULL,
InitGetImage, DoGetImage, NullProc, EndGetImage,