mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 00:46:17 +00:00
igt/gem_cpu_reloc: Terminate the bad batch
gen2 will read the batch up until it reaches the end as defined by the MI_BATCH_BUFFER_END command. Play nice and make sure that it does end on a MI_BB_END. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
be6bb4ce4a
commit
cdf0ea825e
@ -200,6 +200,7 @@ igt_simple_main
|
|||||||
|
|
||||||
bad = gem_create(fd, 4096);
|
bad = gem_create(fd, 4096);
|
||||||
gem_write(fd, bad, 0, hang, sizeof(hang));
|
gem_write(fd, bad, 0, hang, sizeof(hang));
|
||||||
|
gem_write(fd, bad, 4096-sizeof(end), end, sizeof(end));
|
||||||
|
|
||||||
/* launch the newly created batch */
|
/* launch the newly created batch */
|
||||||
copy(fd, handles[i], noop, bad);
|
copy(fd, handles[i], noop, bad);
|
||||||
@ -215,6 +216,7 @@ igt_simple_main
|
|||||||
|
|
||||||
bad = gem_create(fd, 4096);
|
bad = gem_create(fd, 4096);
|
||||||
gem_write(fd, bad, 0, hang, sizeof(hang));
|
gem_write(fd, bad, 0, hang, sizeof(hang));
|
||||||
|
gem_write(fd, bad, 4096-sizeof(end), end, sizeof(end));
|
||||||
|
|
||||||
/* launch the newly created batch */
|
/* launch the newly created batch */
|
||||||
copy(fd, handles[count-i-1], noop, bad);
|
copy(fd, handles[count-i-1], noop, bad);
|
||||||
@ -230,6 +232,7 @@ igt_simple_main
|
|||||||
|
|
||||||
bad = gem_create(fd, 4096);
|
bad = gem_create(fd, 4096);
|
||||||
gem_write(fd, bad, 0, hang, sizeof(hang));
|
gem_write(fd, bad, 0, hang, sizeof(hang));
|
||||||
|
gem_write(fd, bad, 4096-sizeof(end), end, sizeof(end));
|
||||||
|
|
||||||
/* launch the newly created batch */
|
/* launch the newly created batch */
|
||||||
gem_set_domain(fd, handles[i],
|
gem_set_domain(fd, handles[i],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user