diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-02-01 11:12:40 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-02-01 11:13:36 +0000 |
commit | c1e9795050b1e4b76c7f9acd3cc5071f0ecb06ed (patch) | |
tree | 5cda08527fc1df78ad6c0c6b1ab9ffc6199b7254 | |
parent | 371f87f2d825900484e34a8ec78272b9e62cbc02 (diff) |
tests/gem_tiled_fence_blits: Ensure the bo count is odd
In order to avoid a self-copy, the number of bo must not be even.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/gem_tiled_fence_blits.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_tiled_fence_blits.c b/tests/gem_tiled_fence_blits.c index bc2462f7..9f41f7be 100644 --- a/tests/gem_tiled_fence_blits.c +++ b/tests/gem_tiled_fence_blits.c @@ -148,7 +148,7 @@ int main(int argc, char **argv) fd = drm_open_any(); count = 3 * gem_aperture_size(fd) / (1024*1024) / 2; - count += (count & 1) == 0; + count |= 1; printf("Using %d 1MiB buffers\n", count); bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); |