mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 01:46:14 +00:00
igt/gem_exec_blt: Do a warmup run first
Sometimes it takes a pass for the GPU to come up to full speed, so do a "cold" pass first. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
6259d0a36b
commit
4f78f9ffa2
@ -241,6 +241,7 @@ static void run(int object_size, bool dumb)
|
||||
execbuf.flags = ring;
|
||||
do_ioctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf);
|
||||
}
|
||||
gem_sync(fd, handle);
|
||||
|
||||
for (count = 1; count <= 1<<12; count <<= 1) {
|
||||
struct timeval start, end;
|
||||
@ -269,27 +270,23 @@ int main(int argc, char **argv)
|
||||
|
||||
igt_skip_on_simulation();
|
||||
|
||||
igt_subtest("normal") {
|
||||
if (argc > 1) {
|
||||
for (i = 1; i < argc; i++) {
|
||||
int object_size = atoi(argv[i]);
|
||||
if (object_size)
|
||||
run((object_size + 3) & -4, false);
|
||||
}
|
||||
} else
|
||||
run(OBJECT_SIZE, false);
|
||||
if (argc > 1) {
|
||||
for (i = 1; i < argc; i++) {
|
||||
int object_size = atoi(argv[i]);
|
||||
if (object_size)
|
||||
run((object_size + 3) & -4, false);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
igt_subtest("dumb-buf") {
|
||||
if (argc > 1) {
|
||||
for (i = 1; i < argc; i++) {
|
||||
int object_size = atoi(argv[i]);
|
||||
if (object_size)
|
||||
run((object_size + 3) & -4, true);
|
||||
}
|
||||
} else
|
||||
run(OBJECT_SIZE, true);
|
||||
}
|
||||
igt_subtest("cold")
|
||||
run(OBJECT_SIZE, false);
|
||||
|
||||
igt_subtest("normal")
|
||||
run(OBJECT_SIZE, false);
|
||||
|
||||
igt_subtest("dumb-buf")
|
||||
run(OBJECT_SIZE, true);
|
||||
|
||||
igt_exit();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user