summaryrefslogtreecommitdiff
path: root/xvmc/xvmc_vld.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-11 14:56:22 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-11 15:05:56 +0000
commitc489934ed732ed3d5a906939381c62a6bc1c38d5 (patch)
tree7d96475036f22ccad0bc43ad98ad7f71449f4ecb /xvmc/xvmc_vld.c
parent3e93449b5492a4fc09401c23f8754655b63959b5 (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/xvmc_vld.c')
-rw-r--r--xvmc/xvmc_vld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xvmc/xvmc_vld.c b/xvmc/xvmc_vld.c
index e5762941..4c684ff1 100644
--- a/xvmc/xvmc_vld.c
+++ b/xvmc/xvmc_vld.c
@@ -1010,7 +1010,7 @@ static Status put_slice2(Display * display, XvMCContext * context,
cs_buffer();
vld_send_media_object(media_state.slice_data.bo,
nbytes, 0, mb_row, 6, 127, q_scale_code);
- intelFlushBatch(TRUE);
+ intelFlushBatch();
UNLOCK_HARDWARE(intel_ctx->hw_context);
return Success;
@@ -1207,7 +1207,7 @@ static Status render_surface(Display * display,
}
}
}
- intelFlushBatch(TRUE);
+ intelFlushBatch();
UNLOCK_HARDWARE(intel_ctx->hw_context);
return Success;
}