nouveau: Unreference state/buffer objects on context/screen destruction.
authorYounes Manton <younes.m@gmail.com>
Mon, 28 Dec 2009 22:33:34 +0000 (17:33 -0500)
committerYounes Manton <younes.m@gmail.com>
Mon, 28 Dec 2009 22:59:01 +0000 (17:59 -0500)
commit85dcc070719ef6a6bcf65dc4996b1733f63912d8
tree909e191a4b44987761756c53514cdc950ce4ea14
parentcb9214f33030e1f482d59049c239f20061d24ad8
nouveau: Unreference state/buffer objects on context/screen destruction.

- unreference state objects so that buffer objects are unreferenced and
eventually destroyed
- free channel at screen's destruction

Based on Krzysztof Smiechowicz's patch.
12 files changed:
src/gallium/drivers/nouveau/nouveau_screen.c
src/gallium/drivers/nv04/nv04_screen.c
src/gallium/drivers/nv10/nv10_screen.c
src/gallium/drivers/nv20/nv20_screen.c
src/gallium/drivers/nv30/nv30_context.c
src/gallium/drivers/nv30/nv30_fragprog.c
src/gallium/drivers/nv30/nv30_screen.c
src/gallium/drivers/nv40/nv40_context.c
src/gallium/drivers/nv40/nv40_fragprog.c
src/gallium/drivers/nv40/nv40_screen.c
src/gallium/drivers/nv50/nv50_context.c
src/gallium/drivers/nv50/nv50_screen.c