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 <airlied@linux.ie>
This commit is contained in:
Dave Airlie 2009-11-29 18:59:19 +10:00
parent 6f1bc4267f
commit ca9b0e942c
1 changed files with 1 additions and 0 deletions

View File

@ -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 );