Mesa (master): nv50: fix viewport state update

Ben Skeggs darktama at kemper.freedesktop.org
Thu Apr 2 22:35:39 UTC 2009


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

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Wed Apr  1 08:37:36 2009 +1000

nv50: fix viewport state update

---

 src/gallium/drivers/nv50/nv50_state_validate.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_state_validate.c b/src/gallium/drivers/nv50/nv50_state_validate.c
index fc6157d..c13d3de 100644
--- a/src/gallium/drivers/nv50/nv50_state_validate.c
+++ b/src/gallium/drivers/nv50/nv50_state_validate.c
@@ -244,7 +244,7 @@ nv50_state_validate(struct nv50_context *nv50)
 	}
 scissor_uptodate:
 
-	if (nv50->dirty & NV50_NEW_VIEWPORT) {
+	if (nv50->dirty & (NV50_NEW_VIEWPORT | NV50_NEW_RASTERIZER)) {
 		unsigned bypass;
 
 		if (!nv50->rasterizer->pipe.bypass_vs_clip_and_viewport)
@@ -281,6 +281,7 @@ scissor_uptodate:
 
 		so_ref(so, &nv50->state.viewport);
 		so_ref(NULL, &so);
+		nv50->state.dirty |= NV50_NEW_VIEWPORT;
 	}
 viewport_uptodate:
 




More information about the mesa-commit mailing list