mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 15:56:33 +00:00
igt/gem_ringfill: Mark the write object as EXEC_OBJECT_WRITE
After setting the flag for NORELOC (to avoid having to pay the cost of validating the relocations on every pass), we need to make sure that we set EXEC_OBJECT_WRITE so that we do track the outstanding writes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
291ff6bcf1
commit
512f846f37
@ -108,6 +108,7 @@ static void run_test(int fd, unsigned ring, unsigned flags)
|
|||||||
|
|
||||||
memset(obj, 0, sizeof(obj));
|
memset(obj, 0, sizeof(obj));
|
||||||
obj[0].handle = gem_create(fd, 4096);
|
obj[0].handle = gem_create(fd, 4096);
|
||||||
|
obj[0].flags |= EXEC_OBJECT_WRITE;
|
||||||
obj[1].handle = gem_create(fd, 1024*16 + 4096);
|
obj[1].handle = gem_create(fd, 1024*16 + 4096);
|
||||||
gem_write(fd, obj[1].handle, 0, &bbe, sizeof(bbe));
|
gem_write(fd, obj[1].handle, 0, &bbe, sizeof(bbe));
|
||||||
igt_require(__gem_execbuf(fd, &execbuf) == 0);
|
igt_require(__gem_execbuf(fd, &execbuf) == 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user