diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-11 14:56:22 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-11 15:05:56 +0000 |
commit | c489934ed732ed3d5a906939381c62a6bc1c38d5 (patch) | |
tree | 7d96475036f22ccad0bc43ad98ad7f71449f4ecb /xvmc/i915_xvmc.c | |
parent | 3e93449b5492a4fc09401c23f8754655b63959b5 (diff) |
xvmc: Handle allocation failure around batch submission
If we fail to allocate a new batch, just stall and reuse the old one
rather than crashing.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'xvmc/i915_xvmc.c')
-rw-r--r-- | xvmc/i915_xvmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xvmc/i915_xvmc.c b/xvmc/i915_xvmc.c index fbd4555e..204d9507 100644 --- a/xvmc/i915_xvmc.c +++ b/xvmc/i915_xvmc.c @@ -1207,7 +1207,7 @@ static int i915_xvmc_mc_render_surface(Display * display, XvMCContext * context, } } - intelFlushBatch(TRUE); + intelFlushBatch(); i915_xvmc_free_render_state_buffers(pI915XvMC); |