Add winsys->surface_release() to complement winsys->surface_alloc().
authorBrian <brian.paul@tungstengraphics.com>
Wed, 7 Nov 2007 15:05:09 +0000 (08:05 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 7 Nov 2007 15:24:58 +0000 (08:24 -0700)
commit7d1a04e499564212a2a9aace12b05f424a357d3f
treef0b12d8c0d7916d0dbedfb3adad3d1d786455024
parent52236661653169140d07a500facd65185b6b3666
Add winsys->surface_release() to complement winsys->surface_alloc().

pipe_surface now has a pointer to the winsys which create/owns the surface.
This allows clean surface deallocation w/out a rendering context.
src/mesa/drivers/dri/intel_winsys/intel_winsys_pipe.c
src/mesa/pipe/p_inlines.h
src/mesa/pipe/p_state.h
src/mesa/pipe/p_winsys.h
src/mesa/pipe/xlib/xm_api.c
src/mesa/pipe/xlib/xm_buffer.c
src/mesa/pipe/xlib/xm_surface.c
src/mesa/pipe/xlib/xm_winsys.c
src/mesa/pipe/xlib/xmesaP.h
src/mesa/state_tracker/st_cb_fbo.c