summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-08-28 11:01:38 +1000
committerDave Airlie <[email protected]>2009-08-28 11:02:32 +1000
commitd0cb1036aa98d35ae5233d326fbb0ba592a26e26 (patch)
tree621bf0766ef5e3c5ea26d2e2caebbc2a4fb70dc1 /src/mesa/drivers/dri/radeon
parent60b072d49fd2a1b2bf59442ae7209379152b1500 (diff)
radeon: fix scissors harder.
this makes gnome-shell work on r300 for me
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_ioctl.c b/src/mesa/drivers/dri/radeon/radeon_ioctl.c
index 1bda9cbe09c..9ced62418bd 100644
--- a/src/mesa/drivers/dri/radeon/radeon_ioctl.c
+++ b/src/mesa/drivers/dri/radeon/radeon_ioctl.c
@@ -127,8 +127,8 @@ static void radeonEmitScissor(r100ContextPtr rmesa)
OUT_BATCH((rmesa->radeon.state.scissor.rect.y1 << 16) |
rmesa->radeon.state.scissor.rect.x1);
OUT_BATCH(CP_PACKET0(RADEON_RE_WIDTH_HEIGHT, 0));
- OUT_BATCH(((rmesa->radeon.state.scissor.rect.y2 - 1) << 16) |
- (rmesa->radeon.state.scissor.rect.x2 - 1));
+ OUT_BATCH(((rmesa->radeon.state.scissor.rect.y2) << 16) |
+ (rmesa->radeon.state.scissor.rect.x2));
END_BATCH();
} else {
BEGIN_BATCH(2);