summaryrefslogtreecommitdiff
path: root/tests/i915/i915_module_load.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2021-02-06 15:18:49 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2021-02-06 15:19:50 +0000
commit0fc65d3bdcff1b87a677582dbdfcad9b4a7b6968 (patch)
treeb82284226870ec384059ecd7449eadf29aec2b0a /tests/i915/i915_module_load.c
parent98f37176f6a12c3b64169e86491b8402bd8b9e16 (diff)
i915/i915_module_load: Flag the output as EXEC_OBJECT_WRITE
Since we write to the object and try to avoid relocations, we have to flag the object as being written to for the implicit fencing required by gem_read() Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Ramalingam C <ramalingam.c@intel.com>
Diffstat (limited to 'tests/i915/i915_module_load.c')
-rw-r--r--tests/i915/i915_module_load.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/i915/i915_module_load.c b/tests/i915/i915_module_load.c
index 6ae582b6..03dec60d 100644
--- a/tests/i915/i915_module_load.c
+++ b/tests/i915/i915_module_load.c
@@ -49,7 +49,10 @@ static void store_all(int i915)
.write_domain = I915_GEM_DOMAIN_RENDER,
};
struct drm_i915_gem_exec_object2 obj[2] = {
- { .handle = gem_create(i915, sizeof(engines)) },
+ {
+ .handle = gem_create(i915, sizeof(engines)),
+ .flags = EXEC_OBJECT_WRITE,
+ },
{
.handle = gem_create(i915, sz),
.relocation_count = 1,