[Xcb] problem with putting large images

Christoph Pfister christophpfister at gmail.com
Mon Jan 29 13:03:36 PST 2007


Hi,

Am Montag, 29. Januar 2007 18:47 schrieb Jamey Sharp:
> On Sun, Jan 28, 2007 at 02:16:52PM +0100, Christoph Pfister wrote:
> > Apparently I can't put images with xcb_put_image which are bigger than
> > 0x400000 bytes. Please see the attached test case (sorry for the
> > hardcoded values: 1. screen; depth = 24; bpp = 32). Using a width of
> > 1134 makes it working.
>
> I suspect you're seeing an X server bug we noticed last June:
> 	https://bugs.freedesktop.org/show_bug.cgi?id=7186

Possible. The same operation works with xlib ... but don't ask me what is done 
internally there ;-)

> I assume xcb_get_maximum_request_length returns 0x400000 for you? Of
> course that number is supposed to be in 4-byte units, not 1-byte units;
> but it comes directly from the server, which seems to just be doing the
> wrong thing.

Yup, xcb_get_maximum_request_length returns 0x3fffff on my side.

> --Jamey

Christoph


More information about the Xcb mailing list