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

Automate header stripping and make reducer header-aware #82

Merged
merged 6 commits into from
Oct 25, 2018

Conversation

afd
Copy link
Contributor

@afd afd commented Oct 25, 2018

Before we would pass around a boolean to say whether a shader was expected to have headers (containing GraphicsFuzz #defines) that should be stripped.

This PR changes things so that this is decided automatically based on whether the shader has a header.

As part of this, #version information is no longer stripped away - it is left and properly parsed. A knock-on effect is that a lot less version information need to be passed around in general, as it is now stored in translation units.

The reducer has been adapted to automatically decide whether to emit headers depending on whether the shaders being reduced contained them.

…PrettyPrintVisitor. Now paving the way for whether GraphicsFuzz headers are required to be figured out during reduction.
…context more generally than just for figuring out opportunities.
… Reducer uses this to decide whether to emit defines.
paulthomson
paulthomson previously approved these changes Oct 25, 2018
@afd afd merged commit d92b6ed into master Oct 25, 2018
@afd afd deleted the strip_header_via_heuristic branch October 25, 2018 13:02
@afd afd added this to the 1.0 milestone Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants