summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorMichel Daenzer <michel@daenzer.net>2002-07-18 23:17:13 +0000
committerMichel Daenzer <michel@daenzer.net>2002-07-18 23:17:13 +0000
commit881a9b214d033a1e153f61996645bdaa37eb87d8 (patch)
treea1da7ad8d8029c416a1d5772a1461cf7f34d69f2 /shared-core
parent8fa8db126a6aa180fd44ae0be0e720722af69e1d (diff)
fix off-by-one error for right bottom corner in radeon_emit_clip_rect()
(Jacek Rosik)
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/radeon_state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c
index 42b48df6..9e04cbea 100644
--- a/shared-core/radeon_state.c
+++ b/shared-core/radeon_state.c
@@ -50,8 +50,7 @@ static __inline__ void radeon_emit_clip_rect( drm_radeon_private_t *dev_priv,
OUT_RING( CP_PACKET0( RADEON_RE_TOP_LEFT, 0 ) );
OUT_RING( (box->y1 << 16) | box->x1 );
OUT_RING( CP_PACKET0( RADEON_RE_WIDTH_HEIGHT, 0 ) );
-/* OUT_RING( ((box->y2 - 1) << 16) | (box->x2 - 1) );*/
- OUT_RING( (box->y2 << 16) | box->x2 );
+ OUT_RING( ((box->y2 - 1) << 16) | (box->x2 - 1) );
ADVANCE_RING();
}