From: Dave Airlie Date: Sun, 29 Nov 2009 08:59:19 +0000 (+1000) Subject: i965g: remove surface from views list before freeing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca9b0e942c5f8f95383c637b05e3fb237f013688;p=mesa.git i965g: remove surface from views list before freeing this fixes a crash with the xorg state tracker, however it then locks up the GPU once rendering is enabled but at least it doesn't crash. Signed-off-by: Dave Airlie --- diff --git a/src/gallium/drivers/i965/brw_screen_surface.c b/src/gallium/drivers/i965/brw_screen_surface.c index 21a7382873f..1e37c63d6c9 100644 --- a/src/gallium/drivers/i965/brw_screen_surface.c +++ b/src/gallium/drivers/i965/brw_screen_surface.c @@ -245,6 +245,7 @@ static void brw_tex_surface_destroy( struct pipe_surface *surf ) /* Unreference texture, shared buffer: */ + remove_from_list(surface); bo_reference(&surface->bo, NULL); pipe_texture_reference( &surface->base.texture, NULL );