diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-02 14:39:05 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-02 14:39:46 +0000 |
commit | e79660feee41c2a291181a92f011cfd03e6074f5 (patch) | |
tree | 95b2d69e2fa1fcaf96ea9a0a6568ccbf7e9e1141 /lib/igt_dummyload.h | |
parent | c2cada4199a552de59f98c520c8b73159c41a1ec (diff) |
lib/i915: Handle spinner execution from userptr on gen<6
On early gens, the batch buffer must not be snooped and so we need to
clflush the write into the userptr memory to terminate the loop.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'lib/igt_dummyload.h')
-rw-r--r-- | lib/igt_dummyload.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_dummyload.h b/lib/igt_dummyload.h index 9e19ffab..a75fcdeb 100644 --- a/lib/igt_dummyload.h +++ b/lib/igt_dummyload.h @@ -54,6 +54,9 @@ typedef struct igt_spin { struct drm_i915_gem_exec_object2 obj[2]; #define IGT_SPIN_BATCH 1 struct drm_i915_gem_execbuffer2 execbuf; + + unsigned int flags; +#define SPIN_CLFLUSH (1 << 0) } igt_spin_t; struct igt_spin_factory { |