mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 00:46:17 +00:00
gem_stress: round max_dimension down to the next pot
Creates funny rounding problems otherwise. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
3d66d913d9
commit
7250328bb8
@ -699,7 +699,8 @@ static void parse_options(int argc, char **argv)
|
|||||||
if (optind < argc)
|
if (optind < argc)
|
||||||
printf("unkown command options\n");
|
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 (options.use_render) {
|
||||||
if (IS_GEN2(devid) || IS_GEN3(devid))
|
if (IS_GEN2(devid) || IS_GEN3(devid))
|
||||||
options.max_dimension = 2048;
|
options.max_dimension = 2048;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user