diff options
author | Dave Airlie <[email protected]> | 2009-11-29 18:59:19 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-11-29 18:59:19 +1000 |
commit | ca9b0e942c5f8f95383c637b05e3fb237f013688 (patch) | |
tree | 31dc3c92b148347ac754421816850e4638a16b96 /src/gallium/drivers | |
parent | 6f1bc4267f6cd2e18a6a572a5aed2fccd747ce0f (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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | 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 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 ); |