Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318772
b: refs/heads/master
c: 0da5cec
h: refs/heads/master
v: v3
  • Loading branch information
Eric Anholt authored and Daniel Vetter committed Jul 25, 2012
1 parent 530edbd commit b4f0782
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35313cde4c582f3581a4b8397311f302680625f5
refs/heads/master: 0da5cec1de1eb39563fb6ca2be48c0e56fed6309
8 changes: 4 additions & 4 deletions trunk/drivers/gpu/drm/i915/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,10 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
}
}

ret = i915_switch_context(ring, file, ctx_id);
if (ret)
goto err;

if (ring == &dev_priv->ring[RCS] &&
mode != dev_priv->relative_constants_mode) {
ret = intel_ring_begin(ring, 4);
Expand All @@ -1249,10 +1253,6 @@ i915_gem_do_execbuffer(struct drm_device *dev, void *data,
goto err;
}

ret = i915_switch_context(ring, file, ctx_id);
if (ret)
goto err;

trace_i915_gem_ring_dispatch(ring, seqno);

exec_start = batch_obj->gtt_offset + args->batch_start_offset;
Expand Down

0 comments on commit b4f0782

Please sign in to comment.