From 881a9b214d033a1e153f61996645bdaa37eb87d8 Mon Sep 17 00:00:00 2001 From: Michel Daenzer Date: Thu, 18 Jul 2002 23:17:13 +0000 Subject: fix off-by-one error for right bottom corner in radeon_emit_clip_rect() (Jacek Rosik) --- shared-core/radeon_state.c | 3 +-- shared/radeon_state.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c index 42b48df61..9e04cbea0 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(); } diff --git a/shared/radeon_state.c b/shared/radeon_state.c index 42b48df61..9e04cbea0 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(); } -- cgit v1.2.3