Mesa (master): r600: fix scissor also.

Dave Airlie airlied at kemper.freedesktop.org
Fri Aug 28 01:06:03 UTC 2009


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Aug 28 11:05:29 2009 +1000

r600: fix scissor also.

I forgot about r600 being here.

---

 src/mesa/drivers/dri/r600/r700_state.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c
index 30cf2dd..91cb492 100644
--- a/src/mesa/drivers/dri/r600/r700_state.c
+++ b/src/mesa/drivers/dri/r600/r700_state.c
@@ -1288,8 +1288,8 @@ void r700SetScissor(context_t *context) //---------------
 	if (context->radeon.state.scissor.enabled) {
 		x1 = context->radeon.state.scissor.rect.x1;
 		y1 = context->radeon.state.scissor.rect.y1;
-		x2 = context->radeon.state.scissor.rect.x2 - 1;
-		y2 = context->radeon.state.scissor.rect.y2 - 1;
+		x2 = context->radeon.state.scissor.rect.x2;
+		y2 = context->radeon.state.scissor.rect.y2;
 	} else {
 		if (context->radeon.radeonScreen->driScreen->dri2.enabled) {
 			x1 = 0;




More information about the mesa-commit mailing list