diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-06-06 18:59:54 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-06-06 18:59:54 +0200 |
commit | 7250328bb8b3d524cd39dee3fd48b6e17e3af24e (patch) | |
tree | 71734023d5c06b6f71dadf24eb24252aeac8285f /tests/gem_stress.c | |
parent | 3d66d913d9165f59e39952a41b41461b2329c9c1 (diff) |
gem_stress: round max_dimension down to the next pot
Creates funny rounding problems otherwise.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_stress.c')
-rw-r--r-- | tests/gem_stress.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gem_stress.c b/tests/gem_stress.c index b5732bab1..a94fe3501 100644 --- a/tests/gem_stress.c +++ b/tests/gem_stress.c @@ -699,7 +699,8 @@ static void parse_options(int argc, char **argv) if (optind < argc) printf("unkown command options\n"); - options.max_dimension = 32767; + /* actually 32767, according to docs, but that kills our nice pot calculations. */ + options.max_dimension = 16*1024; if (options.use_render) { if (IS_GEN2(devid) || IS_GEN3(devid)) options.max_dimension = 2048; |