diff options
author | Geoff Miller <geoff.miller@intel.com> | 2015-10-26 10:58:48 +0000 |
---|---|---|
committer | John Harrison <John.C.Harrison@Intel.com> | 2016-04-14 17:59:13 +0100 |
commit | 07a3bee2de7cb47ffc43bac906eddf9fde973932 (patch) | |
tree | b340e57bf0bbf8a6f9dcc516c4103281f083f170 | |
parent | ae502bb54af9bc1b5062a0e21920ce920eaea21f (diff) |
lib: intel_batchbuffer - allowed contexts to be submitted for any engine
Previously only the render ring was allowed to have user contexts, so they
were silently nullified for all other engines.
-rw-r--r-- | lib/intel_batchbuffer.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c index 692521fdf9d0..31a77eebf876 100644 --- a/lib/intel_batchbuffer.c +++ b/lib/intel_batchbuffer.c @@ -177,10 +177,7 @@ intel_batchbuffer_flush_on_ring(struct intel_batchbuffer *batch, int ring) batch->ptr = NULL; - /* XXX bad kernel API */ ctx = batch->ctx; - if (ring != I915_EXEC_RENDER) - ctx = NULL; do_or_die(drm_intel_gem_bo_context_exec(batch->bo, ctx, used, ring)); intel_batchbuffer_reset(batch); |