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

Update scatter.glsl to fix issue with textures #37

Merged
merged 4 commits into from
Mar 28, 2021

Conversation

PMunkes
Copy link
Contributor

@PMunkes PMunkes commented Feb 28, 2021

This proposed change fixes #36 without any visual impact.

@GPSnoopy
Copy link
Owner

Hi @PMunkes , thanks for looking into this.

I'll come back to it in a few weeks, family matters to attend to first. But I wanted you to know are not being ignored :-)

@PMunkes
Copy link
Contributor Author

PMunkes commented Feb 28, 2021

Hi @GPSnoopy, take your time, there is no urgency here.

I really enjoy experimenting with this project, so don't be surprised if there's another Pull Request when you return.

This change fixes GPSnoopy#36 without any visual impact.
The problem resulted from non-specified nonuniform texture indices.
As the compiler is allowed to assume uniformity in certain variables, unless specified, this was a bug.
https:/KhronosGroup/GLSL/blob/master/extensions/ext/GL_EXT_nonuniform_qualifier.txt
@PMunkes
Copy link
Contributor Author

PMunkes commented Mar 1, 2021

Updated the pull request since I found the root cause.
The problem was that the texture indices were not specified to be nonuniform.
https:/KhronosGroup/GLSL/blob/master/extensions/ext/GL_EXT_nonuniform_qualifier.txt

@PMunkes
Copy link
Contributor Author

PMunkes commented Mar 2, 2021

Found a very interesting link, in case anyone finds this later and wants more information:
https://gpuopen.com/learn/porting-detroit-2/

@GPSnoopy GPSnoopy merged commit ca6732a into GPSnoopy:master Mar 28, 2021
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.

Rendering Error with RDNA2
2 participants