mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
gem_cpu_reloc: Do another pass explicitly moving to the CPU write domain
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
99a0824669
commit
aaa460951d
@ -189,7 +189,24 @@ int main(int argc, char **argv)
|
||||
exec(fd, bad);
|
||||
gem_close(fd, bad);
|
||||
|
||||
drmtest_progress("gem_cpu_reloc: ", count+i, 2*count);
|
||||
drmtest_progress("gem_cpu_reloc: ", count+i, 3*count);
|
||||
}
|
||||
|
||||
/* Third time lucky? */
|
||||
for (i = 0; i < count; i++) {
|
||||
uint32_t bad;
|
||||
|
||||
bad = gem_create(fd, 4096);
|
||||
gem_write(fd, bad, 0, hang, sizeof(hang));
|
||||
|
||||
/* launch the newly created batch */
|
||||
gem_set_domain(fd, handles[i],
|
||||
I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU);
|
||||
copy(fd, handles[i], noop, bad);
|
||||
exec(fd, bad);
|
||||
gem_close(fd, bad);
|
||||
|
||||
drmtest_progress("gem_cpu_reloc: ", 2*count+i, 3*count);
|
||||
}
|
||||
|
||||
fprintf(stderr, "Test suceeded, cleanup up - this might take a while.\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user