diff options
author | Michel Daenzer <michel@daenzer.net> | 2002-07-18 23:17:13 +0000 |
---|---|---|
committer | Michel Daenzer <michel@daenzer.net> | 2002-07-18 23:17:13 +0000 |
commit | 881a9b214d033a1e153f61996645bdaa37eb87d8 (patch) | |
tree | a1da7ad8d8029c416a1d5772a1461cf7f34d69f2 /shared | |
parent | 8fa8db126a6aa180fd44ae0be0e720722af69e1d (diff) |
fix off-by-one error for right bottom corner in radeon_emit_clip_rect()
(Jacek Rosik)
Diffstat (limited to 'shared')
-rw-r--r-- | shared/radeon_state.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shared/radeon_state.c b/shared/radeon_state.c index 42b48df6..9e04cbea 100644 --- a/shared/radeon_state.c +++ b/shared/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(); } |