-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
[Impeller] Float samplers can get re-ordered compared to SkSL #118847
Comments
I believe there's still a dependence on use order. @jonahwilliams it shows up in the glowing text example in Impeller on Metal that I sent you awhile back. Maybe it's only cropped up after flutter/engine#39147 and flutter/engine#39198 --- I haven't bisected yet. |
Those PRs only adjusted sampler use order - are you seeing float re-ordering? I'd expect them to be re-ordered but the mapping data should account for it. We don't correctly handle uniforms getting optimized out yet. |
Hmm. Shoot. This isn't repro'ing for me anymore. Sorry for the false alarm. I think I probably wasn't being sufficiently paranoid when swapping among a few different framework and engine versions... |
I figured out that this wasn't repro'ing for me earlier today because I was swapping the declaration order of uniforms in the shader, but not swapping the indices used to set the uniforms in the Dart code. That is, the uniforms were set by the Dart code in use-order, and so changing the declaration order in the shader didn't trigger the issue. So, sadly I have to re-open this =( |
Fixed for real this time! |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
When i looked at this last I thought that this was handled correctly via our uniform mapping, but @zanderso has shared a few places where that isn't the case. Need to investigate what is different about these and whether or not we should revist uniform re-mapping for floats.
The text was updated successfully, but these errors were encountered: