Mesa (i965g-restart): i965g: initialize surface refcount
Keith Whitwell
keithw at kemper.freedesktop.org
Wed Nov 4 21:38:36 UTC 2009
Module: Mesa
Branch: i965g-restart
Commit: 0cf432c7a180a6b847fa49c97ea1c48d90a7d5f8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0cf432c7a180a6b847fa49c97ea1c48d90a7d5f8
Author: Keith Whitwell <keithw at vmware.com>
Date: Wed Nov 4 19:03:06 2009 +0000
i965g: initialize surface refcount
---
src/gallium/drivers/i965/brw_screen_surface.c | 2 ++
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 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);
More information about the mesa-commit
mailing list