From: Keith W. <ke...@vm...> - 2010-03-03 19:37:36
|
On Wed, 2010-03-03 at 11:23 -0800, Luca Barbieri wrote: > > And never will... It does not export PIPE_CAP_GLSL, and does not have > > the shader opcodes to ever do so. > > Any Gallium driver should be able to support the GLSL subset without > control flow. > > And if we had a proper optimization infrastructure capable of inlining > functions, converting conditionals to multiplications and unrolling > loops (e.g. look at what the nVidia Cg compiler does), then > essentially all GLSL could be supported on any driver, with only > limitations on the maximum number of loop iterations. > > Isn't it worth supporting that? > > BTW, proprietary drivers do this: for instance nVidia supports GLSL on > nv30, which can't do control flow in fragment shaders and doesn't > support SM3. OK, maybe never is too strong... But it's certainly a long way off... Keith |