I've attached a patch that implements the same change as suggested in the post, which fixes all the issues I've mentioned. Don't know if this is the best way to do it since I've never looked at the code before and it does seem to be a superfluous check if the aim is to limit the maximum size of the pixmap.
I ran the whole xserver through gdb and its same problem as mentioned in this post on the xorg list
http:// lists.freedeskt op.org/ archives/ xorg/2007- June/025579. html
I've attached a patch that implements the same change as suggested in the post, which fixes all the issues I've mentioned. Don't know if this is the best way to do it since I've never looked at the code before and it does seem to be a superfluous check if the aim is to limit the maximum size of the pixmap.