diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-06 11:16:39 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-04-06 11:39:49 +0100 |
commit | a00ed98131d0316d8be1c6c850667d04be397e5a (patch) | |
tree | aa68928c5aadaf9e4fb3f4558d22b3d07877f4b4 /test | |
parent | c2da68871a33612abd8a4fddbabec6118c6ea1be (diff) |
test/present-speed: Disable idle event reporting for no-copy overhead test
Reduce the overheads in the server for better measurements.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test')
-rw-r--r-- | test/present-speed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/present-speed.c b/test/present-speed.c index 48964f74..ba062646 100644 --- a/test/present-speed.c +++ b/test/present-speed.c @@ -207,8 +207,8 @@ static void run(Display *dpy, Window win, const char *name, unsigned options) eid = xcb_generate_id(c); xcb_present_select_input(c, eid, win, - XCB_PRESENT_EVENT_MASK_IDLE_NOTIFY | - XCB_PRESENT_EVENT_MASK_COMPLETE_NOTIFY); + (options & NOCOPY ? 0 : XCB_PRESENT_EVENT_MASK_IDLE_NOTIFY) | + XCB_PRESENT_EVENT_MASK_COMPLETE_NOTIFY); Q = xcb_register_for_special_xge(c, &xcb_present_id, eid, &stamp); clock_gettime(CLOCK_MONOTONIC, &start); @@ -251,7 +251,7 @@ static void run(Display *dpy, Window win, const char *name, unsigned options) } assert(p); - b->busy = 1; + b->busy = (options & NOCOPY) == 0; if (b->fence.xid) { xshmfence_await(b->fence.addr); xshmfence_reset(b->fence.addr); |