<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""><div class="">I am using OSMesa to render large shaders, and would like to be able to interrupt the OSMesa render before it is finished, e.g. when there is user interaction.</div><div class=""><br class=""></div><div class="">The OpenGL way to do this is to use <span style="font-family: Consolas;" class="">glFenceSync/</span><span style="font-family: Consolas;" class="">glClientWaitSync</span> but glFenceSync blocks until llvmpipe is flushed and glClientWaitSync always returns <span style="font-family: Consolas;" class="">GL_ALREADY_SIGNALED</span> on OSMesa, without executing anything.</div><div class=""><br class=""></div><div class="">Besides, many commands in OSMesa are blocking and cause an immediate render, such as glUseProgram(0) or glPopAttrib(). </div><div class=""><br class=""></div><div class="">Is there any way to do what I want to achieve, i.e. pipe all my commands and then wait for the render to finish with a timeout?</div><div class=""><br class=""></div><div class="">Fred</div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">Frédéric Devernay, Research Scientist, INRIA</div><div class=""><a href="mailto:frederic.devernay@inria.fr" class="">frederic.devernay@inria.fr</a></div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></div></body></html>