summaryrefslogtreecommitdiff
path: root/benchmarks/gem_wsim.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/gem_wsim.c')
-rw-r--r--benchmarks/gem_wsim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c
index 82fe6ba9..063f3ca3 100644
--- a/benchmarks/gem_wsim.c
+++ b/benchmarks/gem_wsim.c
@@ -893,9 +893,9 @@ prepare_workload(unsigned int id, struct workload *wrk, unsigned int flags)
}
if (wrk->prio) {
- struct local_i915_gem_context_param param = {
- .context = arg.ctx_id,
- .param = 0x6,
+ struct drm_i915_gem_context_param param = {
+ .ctx_id = arg.ctx_id,
+ .param = I915_CONTEXT_PARAM_PRIORITY,
.value = wrk->prio,
};
gem_context_set_param(fd, &param);