On 21/01/2016 10:52, Gerd Hoffmann wrote: >> > Instead of having a full-blown thread, are there things (such as the >> > TGSI->GLSL conversion) that could be simply offloaded to a userspace >> > thread pool, either in QEMU or in virglrenderer? > I think virglrenderer would have to do that. Unfortunaly opengl isn't > very good at multithreading, so I'm not sure a thread pool would work > well. Compiling shaders could be a special case where threading > actually works because that isn't in the actual rendering workflow. Not > fully sure though, Dave?
Or even MESA could. Perhaps we (you :)) could add an extension for asynchronous shader compilation. But the TGSI->GLSL conversion is done by virglrender, with no opengl calls (with a big IIRC in front). Paolo