Mesa (r6xx-rewrite): correct scissor and cliprect setting
Cooper Yuan
cooperyuan at kemper.freedesktop.org
Tue Jun 23 03:12:50 UTC 2009
Module: Mesa
Branch: r6xx-rewrite
Commit: 5e1534f532330a19fd61cb3d28d48f51a7eafc4e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e1534f532330a19fd61cb3d28d48f51a7eafc4e
Author: Cooper Yuan <cooperyuan at gmail.com>
Date: Tue Jun 23 11:11:19 2009 +0800
correct scissor and cliprect setting
---
src/mesa/drivers/dri/r600/r700_state.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c
index 208f18a..b22e176 100644
--- a/src/mesa/drivers/dri/r600/r700_state.c
+++ b/src/mesa/drivers/dri/r600/r700_state.c
@@ -624,10 +624,10 @@ void r700SetScissor(context_t *context) //---------------
x2 = context->radeon.state.scissor.rect.x2 - 1;
y2 = context->radeon.state.scissor.rect.y2 - 1;
} else {
- x1 = 0;
- y1 = 0;
- x2 = rrb->width - 1;
- y2 = rrb->height - 1;
+ x1 = rrb->dPriv->x;
+ y1 = rrb->dPriv->y;
+ x2 = rrb->dPriv->x + rrb->dPriv->w;
+ y2 = rrb->dPriv->y + rrb->dPriv->h;
}
/* window */
More information about the mesa-commit
mailing list