search for: nv40_destroy

Displaying 2 results from an estimated 2 matches for "nv40_destroy".

2009 Dec 21
1
Clean up of nv40_context->state.hw and nv40_screen->state
...ec_heap); nouveau_resource_free(&screen->vp_data_heap); nouveau_resource_free(&screen->query_heap); Index: nv40_context.c =================================================================== --- nv40_context.c (wersja 32083) +++ nv40_context.c (kopia robocza) @@ -25,7 +25,13 @@ nv40_destroy(struct pipe_context *pipe) { struct nv40_context *nv40 = nv40_context(pipe); + unsigned i; + for (i = 0; i < NV40_STATE_MAX; i++) { + if (nv40->state.hw[i]) + so_ref(NULL, &nv40->state.hw[i]); + } + if (nv40->draw) draw_destroy(nv40->draw);...
2009 Dec 21
2
[PATCH 1/2] Unreference state/buffer objects on context/screen destruction
...(fp->so) + so_ref(NULL, &fp->so); + if (fp->insn_len) FREE(fp->insn); } Index: nv40/nv40_context.c =================================================================== --- nv40/nv40_context.c (wersja 32083) +++ nv40/nv40_context.c (kopia robocza) @@ -25,7 +25,13 @@ nv40_destroy(struct pipe_context *pipe) { struct nv40_context *nv40 = nv40_context(pipe); + unsigned i; + for (i = 0; i < NV40_STATE_MAX; i++) { + if (nv40->state.hw[i]) + so_ref(NULL, &nv40->state.hw[i]); + } + if (nv40->draw) draw_destroy(nv40->draw);...