Keith Whitwell wrote: > Philipp Klaus Krause wrote: > >> Brian Paul schrieb: >> >> >>> But we might ask ourselves if we really want to expose the shading >>> language in drivers that can't actually run shaders with conditionals, etc. >>> >>> >> With loop unrolling and use of the SLT instruction it could be possible >> to run many shaders on that hardware. >> > > Yes, there are lots of ways to simulate branches, I don't think we've > really touched on what can be achieved yet. > > Even on hardware that supports branching, it is probably an optimization > to eliminate them wherever possible. > > Btw, what's the plan for these optimizations, which are obviously card-dependent (for example one card may perform better with loop unrolling, another one may not). It makes sense to have these be card-specific, but it doesn't really make sense to have the code rewritten 10 times...
Stephane ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev