Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glsl compat: Convert to highest GLSL version accepted by the target driver #1797

Merged
merged 1 commit into from
Apr 13, 2018

Conversation

ben-clayton
Copy link
Contributor

@ben-clayton ben-clayton commented Apr 13, 2018

With many more apps using GLES 3.1+, we're now hitting the case where GLSL 330 is not sufficient. Unfortunately GLSL 420+ is not supported on mac (which has been stranded at 410), so forcing output to anything above 410 will completely break mac.

The only sensible option here is to give up with the GLSL compat and either use a ref-rast, a 3rd party library to convert to metal, or require on-device replay. All of these options are substantial work, so for now generate code at the highest supported shader level for the given host device driver. This means shaders using GLSL 420+ features should now work on decent Windows / Linux drivers, but will continue) to fail on mac.

…river

With many more apps using GLES 3.1+, we're now hitting the case where
GLSL 330 is not sufficient. Unfortunately GLSL 420+ is not supported on
mac (which has been stranded at 410), so forcing output to anything
above 410 will completely break mac.

The only sensible option here is to give up with the GLSL compat and
either use a ref-rast, a 3rd party library to convert to metal, or require
on-device replay. All of these options are substantial work, so for now
generate code at the highest supported shader level for the given host
device driver. This means shaders using GLSL 420+ features should
now work on decent Windows / Linux drivers, but will (continue) to
fail on mac.
@ben-clayton ben-clayton requested a review from AWoloszyn April 13, 2018 14:42
@ben-clayton ben-clayton merged commit 2ce48b3 into google:master Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants