i965g: initialize surface refcount

This commit is contained in:
Keith Whitwell
2009-11-04 19:03:06 +00:00
parent 58e3360c11
commit 0cf432c7a1
@@ -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);