r300: Fix cliprect emit
authorNicolai Haehnle <nhaehnle@gmail.com>
Tue, 12 Aug 2008 23:50:12 +0000 (09:50 +1000)
committerDave Airlie <airlied@linux.ie>
Sun, 24 Aug 2008 20:35:12 +0000 (06:35 +1000)
commit649ffc06a62bf487b78440669bdfeb637f1d675b
tree6521a822315303a2579defbe8c8e1993f288604e
parente2898c5fdd91f54c9c84fbf7d32edb8e4dfda574
r300: Fix cliprect emit

This makes our handling of cliprects sane. drm_clip_rect always has exclusiv
bottom-right corners, but the hardware expects inclusive bottom-right corner
so we adjust this here.

This complements Michel Daenzer's commit 57aea290e1e0a26d1e74df6cff777eb9f03
to Mesa. See also http://bugs.freedesktop.org/show_bug.cgi?id=16123

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r300_cmdbuf.c