-
Notifications
You must be signed in to change notification settings - Fork 939
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
Fix missing binding in wgpu-core/src/instance.rs
when profiling
has a backend enabled
#6422
Conversation
To my consternation, I can't reproduce this on my machine, and I suspect that that's why this was missed when @teoxoy introduced this in de97e54#diff-1b40237cc7b42c2140c93d8910af3cb74461441d611f1db3f69e81617229eccbR148 (see #6391) and @Wumpf reviewed. The function's body from before seems obviously wrong; there's no We need clarity on why this compiles before, and doesn't seem to be used when supposedly fixed (and fails our CI), before we can proceed with merging this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, forgot to do this. 😅
wgpu master doesn't compile, because of this typo
Diagnosed the problem. When no features are enabled for --- a/benches/Cargo.toml
+++ b/benches/Cargo.toml
@@ -18,7 +18,7 @@
[features]
# Uncomment these features to enable tracy and superluminal profiling.
-# tracy = ["dep:tracy-client", "profiling/profile-with-tracy"]
+tracy = ["dep:tracy-client", "profiling/profile-with-tracy"]
# superluminal = ["profiling/profile-with-superluminal"]
[dependencies] …and try to compile it:
This is definitely an upstream bug that we need to work around for now. I've updated this patch to do just that. This is also a CI problem, I think; we should be catching problems like this in our CI pipeline, and that we did not is unfortunate. CC @gfx-rs/wgpu for thoughts on this. Going to merge the amended fix with haste. If others feel that this should be solved differently, I'm open to following up. I think it's worth keeping |
wgpu-core/src/instance.rs
when profiling
has a backend enabled
Filed aclysma/profiling#87 with a fix for upstream. This does not fully address the CI concern I raised; we should be testing configurations of code that could break. I think the risk with |
I recommend adding a build to CI that compiles with the type-check profiling backend enabled. Using this backend is basically equivalent to the PR being suggested. I was under the impression that this project was already using this backend in CI since it was actually suggested by kvark in 2021, presumably for this project. I added more detailed thoughts on the PR itself aclysma/profiling#87 |
Filed a follow-up issue for more systemically solving this via CI: #6462 |
No description provided.