-
Notifications
You must be signed in to change notification settings - Fork 112
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
Draft of wgpu-core bump #66
Conversation
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.
This is an autogenerated code review.
Checker summary (by rust_clippy):
The tool has found 1 warnings, 1 errors.
The .monocodus
config not found in your repo. Default config is used.
Check config documentation here
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.
This is an autogenerated code review.
Checker summary (by rust_clippy):
The tool has found 1 warnings, 1 errors.
The .monocodus
config not found in your repo. Default config is used.
Check config documentation here
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.
This is an autogenerated code review.
Checker summary (by rust_clippy):
The tool has found 1 warnings, 1 errors.
The .monocodus
config not found in your repo. Default config is used.
Check config documentation here
1163: Bump gfx to latest master r=kvark a=mkeeter **Connections** - This bumps `gfx` to [#3610](gfx-rs/gfx#3610), and also includes [#3608](gfx-rs/gfx#3608) and [#3609](gfx-rs/gfx#3608) - [Here](gfx-rs/wgpu-native#66) is a draft PR to `wgpu-native` - `wgpu-rs` requires a one-line fix to the `texture_view_drop` call (which now takes a boolean); I can PR this next. **Description** This fixes [pathological shader complexity in SPIRV-Cross](KhronosGroup/SPIRV-Cross#1594), as well as a few other `gfx` PRs. **Testing** I updated `wgpu-native` to use this branch, then updated my [toy raytracer](https://github.com/mkeeter/rayray) to use the resulting `dylibs` and confirmed that it no longer takes forever to compile the pathological shader. In addition, I updated `wgpu-rs` and went through the examples; nothing seems out of place. Co-authored-by: Matt Keeter <[email protected]>
Thank you for an amazing work!
Let's look at this closer, we aren't expected to hand-fix anything. At first sight, it does appear like a bug in For the purposes of this PR though, it might be OK to merge the hand-fix, as long as it unblocks you and other users. |
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.
This is an autogenerated code review.
Checker summary (by rust_clippy):
The tool has found 28 warnings, 0 errors.
The .monocodus
config not found in your repo. Default config is used.
Check config documentation here
Alright, I reduced it to a test case and reported upstream as |
726: Bump wgpu-core and update texture_view_drop call r=kvark a=mkeeter This PR updates to the latest `wgpu-core` commit ([wgpu #1163](gfx-rs/wgpu#1163)), and is the counterpart to [wgpu-native #66](gfx-rs/wgpu-native#66). I'm using `wait = false` in the `texture_view_drop` call to match `buffer_drop` and `texture_drop` elsewhere `backend/direct.rs`, though I don't quite understand the implications 😅 Co-authored-by: Matt Keeter <[email protected]>
bors r+ |
66: Draft of wgpu-core bump r=kvark a=mkeeter This is a draft PR to be merged after `wgpu-core` is bumped to use the latest `gfx` in [this PR](gfx-rs/wgpu#1163) - Updates `cbindgen` instructions - Rebuilds `wgpu/ffi.h` header - Adds `bool now` to `wgpu_texture_view_destroy` to match other `_destroy` functions which take a bool - Renames `now` → `wait` in `wgpu_texture_destroy` to match other `_destroy` functions which take a bool This required one hand-edit of `wgpu.h` (commit 8c29d4b) to fix an issue where it mis-translated an `enum` into a `struct`; not sure why this happened. (the CI build is going to fail, because I'm waiting for the `gfx` PR to be merged before bumping hashes in `Cargo.toml`) Co-authored-by: Matt Keeter <[email protected]>
Build failed: |
network issue |
66: Draft of wgpu-core bump r=kvark a=mkeeter This is a draft PR to be merged after `wgpu-core` is bumped to use the latest `gfx` in [this PR](gfx-rs/wgpu#1163) - Updates `cbindgen` instructions - Rebuilds `wgpu/ffi.h` header - Adds `bool now` to `wgpu_texture_view_destroy` to match other `_destroy` functions which take a bool - Renames `now` → `wait` in `wgpu_texture_destroy` to match other `_destroy` functions which take a bool This required one hand-edit of `wgpu.h` (commit 8c29d4b) to fix an issue where it mis-translated an `enum` into a `struct`; not sure why this happened. (the CI build is going to fail, because I'm waiting for the `gfx` PR to be merged before bumping hashes in `Cargo.toml`) Co-authored-by: Matt Keeter <[email protected]>
Build failed: |
legit error:
|
Oh, that's the It looks like the Ubuntu builder re-runs That makes sense in principle, just annoying in this one case 😆 Let's wait to hear what |
This issue has now been fixed in I've regenerated |
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.
This is an autogenerated code review.
Checker summary (by rust_clippy):
The tool has found 28 warnings, 0 errors.
The .monocodus
config not found in your repo. Default config is used.
Check config documentation here
bors r+ |
726: Bump wgpu-core and update texture_view_drop call r=kvark a=mkeeter This PR updates to the latest `wgpu-core` commit ([wgpu gfx-rs#1163](gfx-rs#1163)), and is the counterpart to [wgpu-native gfx-rs#66](gfx-rs/wgpu-native#66). I'm using `wait = false` in the `texture_view_drop` call to match `buffer_drop` and `texture_drop` elsewhere `backend/direct.rs`, though I don't quite understand the implications 😅 Co-authored-by: Matt Keeter <[email protected]>
This is a draft PR to be merged after
wgpu-core
is bumped to use the latestgfx
in this PRcbindgen
instructionswgpu/ffi.h
headerbool now
towgpu_texture_view_destroy
to match other_destroy
functions which take a boolnow
→wait
inwgpu_texture_destroy
to match other_destroy
functions which take a boolThis required one hand-edit of
wgpu.h
(commit 8c29d4b) to fix an issue where it mis-translated anenum
into astruct
; not sure why this happened.(the CI build is going to fail, because I'm waiting for the
gfx
PR to be merged before bumping hashes inCargo.toml
)