public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH i-g-t] igt/gem_tiled_fence_blits: Remember to mark up fence blits
@ 2018-10-29 20:49 Chris Wilson
  2018-10-30  2:59 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chris Wilson @ 2018-10-29 20:49 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

Older platforms require fence registers to perform blits, and so
userspace is expected to mark up the objects to request fences be
assigned.

Fixes: ff2db94acb53 ("igt/gem_tiled_fence_blits: Remove libdrm_intel dependence")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108591
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/i915/gem_tiled_fence_blits.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/i915/gem_tiled_fence_blits.c b/tests/i915/gem_tiled_fence_blits.c
index 7560fa52..e40a7b43 100644
--- a/tests/i915/gem_tiled_fence_blits.c
+++ b/tests/i915/gem_tiled_fence_blits.c
@@ -141,6 +141,8 @@ static void run_test(int fd, int count)
 
 	memset(reloc, 0, sizeof(reloc));
 	memset(obj, 0, sizeof(obj));
+	obj[0].flags = EXEC_OBJECT_NEEDS_FENCE;
+	obj[1].flags = EXEC_OBJECT_NEEDS_FENCE;
 	obj[2].handle = create_batch(fd, reloc);
 	obj[2].relocs_ptr = to_user_pointer(reloc);
 	obj[2].relocation_count = ARRAY_SIZE(reloc);
-- 
2.19.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-10-30 18:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-29 20:49 [Intel-gfx] [PATCH i-g-t] igt/gem_tiled_fence_blits: Remember to mark up fence blits Chris Wilson
2018-10-30  2:59 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-10-30 10:36 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-10-30 13:32 ` [Intel-gfx] [igt-dev] [PATCH i-g-t] " Ville Syrjälä
2018-10-30 17:30   ` Chris Wilson
2018-10-30 18:04     ` [Intel-gfx] " Ville Syrjälä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox