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

various bug fixes #7

Merged
merged 3 commits into from
Aug 18, 2012
Merged

various bug fixes #7

merged 3 commits into from
Aug 18, 2012

Conversation

mawww
Copy link

@mawww mawww commented Feb 7, 2012

Hello,

Here are some bug fixes I had to make in order to have glsl optimizer work with our current shader set at Eugen Systems.

Cheers,

Maxime Coste.

Maxime Coste added 3 commits January 23, 2012 12:59
The previous approach, which renamed variables in inlining was invalid.
nested scope variables were not handled (using a hierarchical visitor
would fix that) and loop unrolling too would result on duplicated
variables with same name. I encountred same variables names on output
even after fixing these two problems, so I guess there is more cases
where a variable is duplicated and it's name needs to be changed but is
not.

This alternative solution, which append a unique id to each variable
seems more robust and future proof (should iteract well with future
optimization, without needing to check if it duplicates variables).
@eodabash
Copy link

These changes fixed some problems we were running into too, so I agree these should be merged into the main branch.

@joelk
Copy link

joelk commented Aug 12, 2012

likewise.

aras-p added a commit that referenced this pull request Aug 18, 2012
@aras-p aras-p merged commit bb34a92 into aras-p:master Aug 18, 2012
aras-p added a commit that referenced this pull request Aug 18, 2012
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.

None yet

4 participants