Yes, it would be nice to do something other than crash here. Signed-off-by: Keith Packard <kei...@keithp.com> --- src/i830_batchbuffer.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/i830_batchbuffer.c b/src/i830_batchbuffer.c index 13d939e..b1c8a8d 100644 --- a/src/i830_batchbuffer.c +++ b/src/i830_batchbuffer.c @@ -112,7 +112,9 @@ intel_next_batch(ScrnInfoPtr pScrn) else pI830->batch_bo = dri_bo_alloc(pI830->bufmgr, "batch", 4096 * 4, 4096); - dri_bo_map(pI830->batch_bo, 1); + if (dri_bo_map(pI830->batch_bo, 1) != 0) + FatalError("Failed to map batchbuffer: %s\n", strerror(errno)); + pI830->batch_used = 0; pI830->batch_ptr = pI830->batch_bo->virtual; } -- 1.5.6.5 ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel