Mesa's GLSL Compiler has Improved

Discuss technical features of Limit Theory and the LT Engine

Mesa's GLSL Compiler has Improved

Postby codeape » Mon Oct 13, 2014 12:57 am

JoshParnell wrote:Yes, this is the first time I've ever gotten the full game running (well) on the open-source Mesa drivers. I'm not sure if I made some incredible improvement, or if Mesa made some incredible improvement, or a little bit of both (last time I tried it appeared to me that Mesa's shader optimization was so painfully slow that the scalar field shaders couldn't even compile)


Yes a lot of nice things have gone in to Mesa's GLSL the past year:

Optimizations over the past year on their shader test cache show SIMD16 programs increasing from 88.6% to 97.8%, 43k shader samples improved, about a 10% reduction in the number of loops in programs, around 16% cut in the number of basic blocks, and around 92% less CFG calculations. On top of that, many new Steam on Linux games are beginning to just work fine.

Source: http://www.phoronix.com/scan.php?page=n ... px=MTgxMDI

Other highlights from that page:
- The page has some links to some low level technical stuff.
- Going from GLSL 1.40 to GLSL 3.30 compliance
- The new "NIR" intermediate representation
Image
User avatar
codeape
Commander
 
Posts: 282
Joined: Mon Jan 07, 2013 2:18 am
Location: Sweden

Re: Mesa's GLSL Compiler has Improved

Postby codeape » Thu Nov 06, 2014 4:35 am

Image
User avatar
codeape
Commander
 
Posts: 282
Joined: Mon Jan 07, 2013 2:18 am
Location: Sweden

Re: Mesa's GLSL Compiler has Improved

Postby codeape » Sat Jan 17, 2015 4:15 pm

Today, the initial patches for a shader cache landed -- storing compiled OpenGL shaders on the disk so they can be quickly reloaded in the future rather than having to be re-compiled each time. SHA1 sums are used for matching to the shader cache and ensuring no differences.
http://www.phoronix.com/scan.php?page=n ... he-Landing
Image
User avatar
codeape
Commander
 
Posts: 282
Joined: Mon Jan 07, 2013 2:18 am
Location: Sweden

Re: Mesa's GLSL Compiler has Improved

Postby DWMagus » Tue Jan 20, 2015 10:48 am

Thanks for keeping us posted codeape! I do like reading these articles. :thumbup:
Image
Early Spring - 1055: Well, I made it to Boatmurdered, and my initial impressions can be set forth in three words: What. The. F*ck.
User avatar
DWMagus
Moderator
 
Posts: 5066
Joined: Wed Dec 05, 2012 3:25 pm
Location: Denver, CO, United States

Re: Mesa's GLSL Compiler has Improved

Postby codeape » Thu Jan 22, 2015 12:30 am

DWMagus wrote:Thanks for keeping us posted codeape! I do like reading these articles. :thumbup:


NP :D I am happy that you like it :thumbup:
Image
User avatar
codeape
Commander
 
Posts: 282
Joined: Mon Jan 07, 2013 2:18 am
Location: Sweden


Return to Technical



Who is online

Users browsing this forum: No registered users and 2 guests