<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>Ah, I think the previous email I linked to may have simply been wrong. It<br>
</span>
<div>states that BIG-REQUESTS increases the max request size to 16GB from 256KB but<br>
</div>
<div>I think the maximum is actually only 16MB.<br>
</div>
<div><br>
</div>
<div>I'll split up the image in the application code for now and see if I can come<br>
</div>
<div>up with a clean implementation before submitting a pull request to xcb.<br>
</div>
<div><br>
</div>
<div>Thanks for the help Bart!</div>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Bart Massey <bart@cs.pdx.edu><br>
<b>Sent:</b> Friday, January 18, 2019 5:39 PM<br>
<b>To:</b> paul ewing<br>
<b>Cc:</b> xcb@lists.freedesktop.org<br>
<b>Subject:</b> Re: [Xcb] How can I increase the maximum request length?</font>
<div> </div>
</div>
<div>
<div dir="ltr">Offhand, looks like your bigger display is too big to use a single PutImage request even with BIG-REQUESTS enabled. Looks like xcb_image_put() doesn't break the request into pieces for you (maybe it should? pull requests welcome) so you'll have
to put the image a piece at a time: break it into bands and use the y offset.</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Jan 18, 2019 at 2:29 PM paul ewing <<a href="mailto:pcewing@outlook.com">pcewing@outlook.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>Hello,<br>
</span>
<div><br>
</div>
<div>I am running into an issue with xcb_image_put failing. The cookie being<br>
</div>
<div>returned has a sequence number of 0. After reading the following thread from<br>
</div>
<div>this mailing list I believe it's due to my maximum request size being too low:<br>
</div>
<div><br>
</div>
<div><a href="https://lists.freedesktop.org/archives/xcb/2006-June/001687.html" target="_blank">https://lists.freedesktop.org/archives/xcb/2006-June/001687.html</a><br>
</div>
<div><br>
</div>
<div>The reason I suspect this is that the code in question is being used to set the<br>
</div>
<div>root pixmap (I.E. Set the wallpaper) and works on one machine where the display<br>
</div>
<div>(And thus the image) is 1920x1080, but fails on another machine with a<br>
</div>
<div>3440x1440 display.<br>
</div>
<div><br>
</div>
<div>As the documentation mentions, the request size is actually the number of 4<br>
</div>
<div>byte blocks. The image data size should be the pixel count multiplied by the<br>
</div>
<div>bytes per pixel (4 in my case), so it would make sense that the first case<br>
</div>
<div>would succeed and the second would fail:<br>
</div>
<div>- (1920*1080*4)/4 => 2073600 < <span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">
4194303</span> OKAY<br>
</div>
<div>- (3440*1440*4)/4 => 4953600 > 4194303 ERROR<br>
</div>
<div><br>
</div>
<div>I verified via xdpyinfo that the BIG-REQUESTS extension is present and also<br>
</div>
<div>tried manually running xcb_big_requests_enable and<br>
</div>
<div>xcb_big_requests_enable_reply, which returned without an error.<br>
</div>
<div><br>
</div>
<div>Even still, the result of xcb_get_maximum_request_length is 4194303.<br>
</div>
<div><br>
</div>
<div>Is there something I need to do to manually increase the maximum request<br>
</div>
<div>length?<br>
</div>
<div><br>
</div>
<div>Thanks,<br>
</div>
<div>Paul Ewing</div>
</div>
</div>
_______________________________________________<br>
Xcb mailing list<br>
<a href="mailto:Xcb@lists.freedesktop.org" target="_blank">Xcb@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/xcb" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/xcb</a></blockquote>
</div>
</div>
</div>
</body>
</html>