Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109196
b: refs/heads/master
c: 649ffc0
h: refs/heads/master
v: v3
  • Loading branch information
Nicolai Haehnle authored and Dave Airlie committed Aug 24, 2008
1 parent 311f37d commit 27044e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e2898c5fdd91f54c9c84fbf7d32edb8e4dfda574
refs/heads/master: 649ffc06a62bf487b78440669bdfeb637f1d675b
5 changes: 4 additions & 1 deletion trunk/drivers/gpu/drm/radeon/r300_cmdbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ static int r300_emit_cliprects(drm_radeon_private_t *dev_priv,
return -EFAULT;
}

box.x2--; /* Hardware expects inclusive bottom-right corner */
box.y2--;

if ((dev_priv->flags & RADEON_FAMILY_MASK) >= CHIP_RV515) {
box.x1 = (box.x1) &
R300_CLIPRECT_MASK;
Expand All @@ -95,8 +98,8 @@ static int r300_emit_cliprects(drm_radeon_private_t *dev_priv,
R300_CLIPRECT_MASK;
box.y2 = (box.y2 + R300_CLIPRECT_OFFSET) &
R300_CLIPRECT_MASK;

}

OUT_RING((box.x1 << R300_CLIPRECT_X_SHIFT) |
(box.y1 << R300_CLIPRECT_Y_SHIFT));
OUT_RING((box.x2 << R300_CLIPRECT_X_SHIFT) |
Expand Down

0 comments on commit 27044e7

Please sign in to comment.