Unify radeon offset checking.
authorMichel Dänzer <michel@tungstengraphics.com>
Thu, 14 Dec 2006 18:31:56 +0000 (19:31 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Thu, 14 Dec 2006 18:31:56 +0000 (19:31 +0100)
commitaefc7a34431a8f1540b261e23d8b8d05d824b60a
treecb8a35f033a0f9aa375ababc489913fe6f790a3b
parent74a92bbf6ea9b9766a2b827f22605559791569b8
Unify radeon offset checking.

Replace r300_check_offset() with generic radeon_check_offset(), which doesn't
reject valid offsets when the framebuffer area is at the very end of the card's
32 bit address space. Make radeon_check_and_fixup_offset() use
radeon_check_offset() as well.

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=7697 .
shared-core/r300_cmdbuf.c
shared-core/radeon_drv.h
shared-core/radeon_state.c