<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - process /usr/bin/Xwayland consume 100% CPU resources and GUI stop respond"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106442#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - process /usr/bin/Xwayland consume 100% CPU resources and GUI stop respond"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106442">bug 106442</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>glamor_fds_from_pixmap is returning -1 on error, proc_dri3_buffers_from_pixmap
expects 0 on error.
diff --git a/dri3/dri3_request.c b/dri3/dri3_request.c
index e34bebedb..79e3c8e2c 100644
--- a/dri3/dri3_request.c
+++ b/dri3/dri3_request.c
@@ -520,7 +520,7 @@ proc_dri3_buffers_from_pixmap(ClientPtr client)
}
num_fds = dri3_fds_from_pixmap(pixmap, fds, strides, offsets, &modifier);
- if (num_fds == 0)
+ if (num_fds <= 0)
return BadPixmap;
rep.nfd = num_fds;</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>