-
Notifications
You must be signed in to change notification settings - Fork 954
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
Ray tracing compaction #6609
Open
Vecvec
wants to merge
438
commits into
gfx-rs:trunk
Choose a base branch
from
Vecvec:ray-tracing-compaction
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Ray tracing compaction #6609
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # .gitattributes # wgpu-core/src/command/compute.rs # wgpu-core/src/command/render.rs # wgpu-core/src/device/life.rs # wgpu-core/src/device/resource.rs # wgpu-core/src/track/mod.rs
# Conflicts: # naga/src/back/spv/writer.rs # wgpu-core/src/hub.rs # wgpu-core/src/registry.rs # wgpu/src/backend/wgpu_core.rs
fix validation
Merge commit 'fb3b33d09233140533a9e431256a8690bf4c5d42' from wgpu/trunk into ray-tracing
…rds do not support (and it now works!) currently missing validation
…-tracing-compaction
…cing-compaction # Conflicts: # CHANGELOG.md # tests/tests/ray_tracing/as_build.rs # wgpu-core/src/device/queue.rs
…cing-compaction # Conflicts: # wgpu/src/backend/webgpu.rs # wgpu/src/backend/wgpu_core.rs # wgpu/src/context.rs
Finally managed to reproduce failing test locally. |
Mesa seems to be the cause of the seg fault, opened https://gitlab.freedesktop.org/mesa/mesa/-/issues/12289. Edit: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32616 should fix this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Connections
Follow up to #6291
Depends on
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32616 to stop CI failing.
Description
Adds the function
compact_blas
as specified in #1040. This needed two more functions in wgpu-hal. These are based on DX12 and the function callEmitRaytracingAccelerationStructurePostbuildInfo()
. On Vulkan this call is emulated with query sets. Compaction does not need any additional featues. Depending on the GPU and BLAS contents compaction may not be possible. In that case the BLAS will be duplicated (logic done by GPU driver).This change is shown by ray_cube_compute, which now compacts the BLAS before using it. This shows the requirements of the function.
Testing
Adds two more tests, testing valid and invalid compaction operations.
Checklist
cargo fmt
.taplo format
. - done by CIcargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.CHANGELOG.md
. See simple instructions inside file.