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:
parent
6f1bc4267f
commit
ca9b0e942c
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue