tom fogal wrote:
> Brian Paul <bri...@vmware.com> writes:
>> Kamalneet Singh wrote:
>>> Stephane Marchesin wrote:
>>>> [...]
>>>> What specifically are you interested in ? FWIW all this stuff is quite
>>>> unfinished...
>>> We have a project to develop OpenGL ES Shading Language compiler. We
>>> want to use llvm,
> [snip]
> 
>> For the long-term, we need a new GLSL compiler in Mesa.  I think a
>> new compil er which uses LLVM for code generation is the right way
>> to go.  LLVM has lot s of good optimization infrastructure that I
>> wouldn't want to try to recreate .
> 
> Could you elaborate on this?  Are there more/bigger issues than what is
> mentioned under `Unsupported Features' at:
> 
>     http://www.mesa3d.org/shading.html

That web page was stale.  I've uploaded the latest version from git.

Mesa's GLSL compiler is up date with GLSL 1.20 but the code quality isn't that 
great.  There's all kinds of optimizations that we should do, but don't.  
Example include:

dead code elimination
strength reduction
constant propagation
common sub-expression elimination

Another big issue is reducing temp register usage.  Mesa's compiler frees and 
re-uses temporary registers in many places, but it's not good enough.

-Brian

------------------------------------------------------------------------------
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to