Mesa (master): radeon: Also flush if it's not the current context that' s being destroyed.

Alex Deucher agd5f at kemper.freedesktop.org
Thu Jul 15 18:54:57 UTC 2010


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

Author: Henri Verbeet <hverbeet at gmail.com>
Date:   Thu Jul 15 14:53:16 2010 -0400

radeon: Also flush if it's not the current context that's being destroyed.

This avoids calling radeonFlush() during context destruction, when
ctx->DrawBuffer would be NULL.

NOTE: This is a candidate for the 7.8 branch.

---

 .../drivers/dri/radeon/radeon_common_context.c     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c
index 94f4766..5a7d52c 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c
@@ -300,10 +300,10 @@ void radeonDestroyContext(__DRIcontext *driContextPriv )
 	_mesa_meta_free(radeon->glCtx);
 
 	if (radeon == current) {
-		radeon_firevertices(radeon);
 		_mesa_make_current(NULL, NULL, NULL);
 	}
 
+	radeon_firevertices(radeon);
 	if (!is_empty_list(&radeon->dma.reserved)) {
 		rcommonFlushCmdBuf( radeon, __FUNCTION__ );
 	}




More information about the mesa-commit mailing list