diff options
author | Marcin Slusarz <[email protected]> | 2012-06-14 21:48:46 +0200 |
---|---|---|
committer | Marcin Slusarz <[email protected]> | 2012-06-14 23:38:28 +0200 |
commit | fc782bcbf04f036990f69b14e01304e1e6dc8fd1 (patch) | |
tree | 5d863454f47887921ff77829a1aede971e4e9ae5 /src/gallium/drivers/nvc0/nvc0_state.c | |
parent | 169a0ae40aed27e3f61ac5989b05f0014dab6525 (diff) |
nv50,nvc0: fix stream output target buffer leak
It manifests at exit as:
"WARNING: destroying GPU memory cache with some buffers still in use"
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_state.c')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_state.c b/src/gallium/drivers/nvc0/nvc0_state.c index cce2a48533f..1bd54342e81 100644 --- a/src/gallium/drivers/nvc0/nvc0_state.c +++ b/src/gallium/drivers/nvc0/nvc0_state.c @@ -899,6 +899,7 @@ nvc0_so_target_destroy(struct pipe_context *pipe, { struct nvc0_so_target *targ = nvc0_so_target(ptarg); pipe->destroy_query(pipe, targ->pq); + pipe_resource_reference(&targ->pipe.buffer, NULL); FREE(targ); } |