Mesa (master): r600g: Delete custom_dsa_flush on shutdown.

Tilman Sauerbeck tilman at kemper.freedesktop.org
Tue Nov 2 21:09:14 UTC 2010


Module: Mesa
Branch: master
Commit: ecb1b8b98f7b2464e29e56a1f1bf87f74129ac08
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecb1b8b98f7b2464e29e56a1f1bf87f74129ac08

Author: Tilman Sauerbeck <tilman at code-monkey.de>
Date:   Sun Oct 31 12:16:03 2010 +0100

r600g: Delete custom_dsa_flush on shutdown.

Signed-off-by: Tilman Sauerbeck <tilman at code-monkey.de>

---

 src/gallium/drivers/r600/r600_pipe.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index d25de55..952c7f6 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -77,6 +77,8 @@ static void r600_destroy_context(struct pipe_context *context)
 {
 	struct r600_pipe_context *rctx = (struct r600_pipe_context *)context;
 
+	rctx->context.delete_depth_stencil_alpha_state(&rctx->context, rctx->custom_dsa_flush);
+
 	r600_context_fini(&rctx->ctx);
 	for (int i = 0; i < R600_PIPE_NSTATES; i++) {
 		free(rctx->states[i]);




More information about the mesa-commit mailing list