Mesa (mesa_7_7_branch): softpipe: Flush draw module before switching framebuffer.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu Jan 28 20:23:04 UTC 2010
Module: Mesa
Branch: mesa_7_7_branch
Commit: 1befcd5a2ae8588f8d17d2ecea19dd4daccddb00
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1befcd5a2ae8588f8d17d2ecea19dd4daccddb00
Author: José Fonseca <jfonseca at vmware.com>
Date: Sat Dec 26 11:01:05 2009 +0000
softpipe: Flush draw module before switching framebuffer.
Otherwise geometry might end up in the wrong rendertarget.
---
src/gallium/drivers/softpipe/sp_state_surface.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/softpipe/sp_state_surface.c b/src/gallium/drivers/softpipe/sp_state_surface.c
index 794a922..d29b6ae 100644
--- a/src/gallium/drivers/softpipe/sp_state_surface.c
+++ b/src/gallium/drivers/softpipe/sp_state_surface.c
@@ -48,6 +48,8 @@ softpipe_set_framebuffer_state(struct pipe_context *pipe,
struct softpipe_context *sp = softpipe_context(pipe);
uint i;
+ draw_flush(sp->draw);
+
for (i = 0; i < PIPE_MAX_COLOR_BUFS; i++) {
/* check if changing cbuf */
if (sp->framebuffer.cbufs[i] != fb->cbufs[i]) {
More information about the mesa-commit
mailing list