summaryrefslogtreecommitdiff
path: root/tests/gem_mocs_settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_mocs_settings.c')
-rw-r--r--tests/gem_mocs_settings.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gem_mocs_settings.c b/tests/gem_mocs_settings.c
index 29788b64..9705fbfd 100644
--- a/tests/gem_mocs_settings.c
+++ b/tests/gem_mocs_settings.c
@@ -453,6 +453,9 @@ igt_main
flags & MOCS_NON_DEFAULT_CTX ? "-ctx": "",
flags & MOCS_DIRTY_VALUES ? "-dirty" : "",
e->name) {
+ if (flags & (MOCS_NON_DEFAULT_CTX | MOCS_DIRTY_VALUES))
+ gem_require_contexts(fd);
+
run_test(fd, e->exec_id | e->flags, flags, mode);
}
}