From: Keith Whitwell Date: Wed, 4 Nov 2009 19:03:06 +0000 (+0000) Subject: i965g: initialize surface refcount X-Git-Tag: mesa-7.8~2025^2~133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cf432c7a180a6b847fa49c97ea1c48d90a7d5f8;p=platform%2Fupstream%2Fmesa.git i965g: initialize surface refcount --- diff --git a/src/gallium/drivers/i965/brw_screen_surface.c b/src/gallium/drivers/i965/brw_screen_surface.c index b4ad912..04a6fc7 100644 --- a/src/gallium/drivers/i965/brw_screen_surface.c +++ b/src/gallium/drivers/i965/brw_screen_surface.c @@ -130,6 +130,8 @@ static struct brw_surface *create_in_place_view( struct brw_screen *brw_screen, if (surface == NULL) return NULL; + pipe_reference_init(&surface->base.reference, 1); + /* XXX: ignoring render-to-slice-of-3d-texture */ assert(id.bits.zslice == 0);