summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-04 19:03:06 +0000
committerKeith Whitwell <[email protected]>2009-11-04 19:03:06 +0000
commit0cf432c7a180a6b847fa49c97ea1c48d90a7d5f8 (patch)
tree96607ecd174474c77830094122067d5d8cc9672e
parent58e3360c11d6041de2927b604416146acb0c3817 (diff)
i965g: initialize surface refcount
-rw-r--r--src/gallium/drivers/i965/brw_screen_surface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_screen_surface.c b/src/gallium/drivers/i965/brw_screen_surface.c
index b4ad91278b2..04a6fc7b66d 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);