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:
Chris Wilson 2012-10-02 21:40:46 +01:00
parent 99a0824669
commit aaa460951d

View File

@ -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");