summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2009-11-29 18:59:19 +1000
committerDave Airlie <airlied@linux.ie>2009-11-29 18:59:19 +1000
commitca9b0e942c5f8f95383c637b05e3fb237f013688 (patch)
tree31dc3c92b148347ac754421816850e4638a16b96 /src/gallium/drivers/i965
parent6f1bc4267f6cd2e18a6a572a5aed2fccd747ce0f (diff)
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>
Diffstat (limited to 'src/gallium/drivers/i965')
-rw-r--r--src/gallium/drivers/i965/brw_screen_surface.c1
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 21a7382873..1e37c63d6c 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 );