[Mesa-dev] Cut 2903 lines from the built-in profile madness.

Olivier Galibert galibert at pobox.com
Wed Apr 18 00:03:41 PDT 2012


On Tue, Apr 17, 2012 at 11:45:18AM -0700, Kenneth Graunke wrote:
> This series is inspired by Olivier's shading language include series,
> which nuked a zillion lines from the built-in profiles.  However,
> this one does it in 4 lines of Python and should reduce startup time
> a little as well.
> 
> I was actually surprised it turned out this simple.  I'd originally
> devised something far more complicated and couldn't get it to work.
> Then I realized that all the infrastructure was already all in place,
> deleted all the complexity, and everything worked...

Hmmm, the idea was to simplify profiles, so I don't care whether it
uses includes or not.  But I'm not convinced you can reasonably handle
the GLSL versions after 1.40, especially with the core/compatibility
separation.

I join a complete profiles/* for everything up to 4.2 and the
associated generate_builtins.py.  If you can find a way to generate
something similar with your approach it would be beautiful.  If not,
it's going to be a kick in the nads for my current project :/

Best,

  OG.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profiles.zip
Type: application/zip
Size: 32050 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120418/8e9d2e32/attachment-0001.zip>


More information about the mesa-dev mailing list