Module: Mesa
Branch: i965g-restart
Commit: ca9b0e942c5f8f95383c637b05e3fb237f013688
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca9b0e942c5f8f95383c637b05e3fb237f013688

Author: Dave Airlie <[email protected]>
Date:   Sun Nov 29 18:59:19 2009 +1000

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 <[email protected]>

---

 src/gallium/drivers/i965/brw_screen_surface.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/i965/brw_screen_surface.c 
b/src/gallium/drivers/i965/brw_screen_surface.c
index 21a7382..1e37c63 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 );
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to