Index: mesa-10.1.3/src/mesa/drivers/dri/i965/brw_blorp.cpp =================================================================== --- mesa-10.1.3.orig/src/mesa/drivers/dri/i965/brw_blorp.cpp 2014-05-09 08:15:37.000000000 -0600 +++ mesa-10.1.3/src/mesa/drivers/dri/i965/brw_blorp.cpp 2014-06-07 16:33:54.920826925 -0600 @@ -68,8 +68,8 @@ this->mt = mt; this->level = level; this->layer = layer; - this->width = mt->level[level].width; - this->height = mt->level[level].height; + this->width = mt ? mt->level[level].width : 0; + this->height = mt ? mt->level[level].height : 0; intel_miptree_get_image_offset(mt, level, layer, &x_offset, &y_offset); } @@ -81,6 +81,10 @@ bool is_render_target) { brw_blorp_mip_info::set(mt, level, layer); + if (!mt) { + return; + } + this->num_samples = mt->num_samples; this->array_spacing_lod0 = mt->array_spacing_lod0; this->map_stencil_as_y_tiled = false; Index: mesa-10.1.3/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp =================================================================== --- mesa-10.1.3.orig/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp 2014-05-09 08:15:37.000000000 -0600 +++ mesa-10.1.3/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp 2014-06-07 16:35:21.028825383 -0600 @@ -192,6 +192,10 @@ dst.set(brw, irb->mt, irb->mt_level, layer, true); + if (!irb->mt) { + return; + } + /* Override the surface format according to the context's sRGB rules. */ mesa_format format = _mesa_get_render_format(ctx, irb->mt->format); dst.brw_surfaceformat = brw->render_target_format[format];