Skip to content

Commit b276e21

Browse files
committed
output debug functions
1 parent dd93ed5 commit b276e21

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ By @Vecvec in [#7913](https://github.com/gfx-rs/wgpu/pull/7913).
7575
- The function you pass to `Device::on_uncaptured_error()` must now implement `Sync` in addition to `Send`, and be wrapped in `Arc` instead of `Box`.
7676
In exchange for this, it is no longer possible for calling `wgpu` functions while in that callback to cause a deadlock (not that we encourage you to actually do that).
7777
By @kpreid in [#8011](https://github.com/gfx-rs/wgpu/pull/8011).
78+
- Make a compacted hal acceleration structure inherit a label from the base BLAS. By @Vecvec in [#8103](https://github.com/gfx-rs/wgpu/pull/8103).
7879

7980
#### Naga
8081

wgpu-core/src/device/queue.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,8 @@ impl Queue {
14651465
profiling::scope!("Queue::compact_blas");
14661466
api_log!("Queue::compact_blas");
14671467

1468+
let new_label = blas.label.clone() + " (compacted)";
1469+
14681470
self.device.check_is_valid()?;
14691471
self.same_device_as(blas.as_ref())?;
14701472

@@ -1486,7 +1488,7 @@ impl Queue {
14861488
device
14871489
.raw()
14881490
.create_acceleration_structure(&hal::AccelerationStructureDescriptor {
1489-
label: None,
1491+
label: hal_label(Some(&new_label), device.instance_flags),
14901492
size: size_info.acceleration_structure_size,
14911493
format: hal::AccelerationStructureFormat::BottomLevel,
14921494
allow_compaction: false,
@@ -1528,7 +1530,7 @@ impl Queue {
15281530
// Bypass the submit checks which update this because we don't submit this normally.
15291531
built_index: RwLock::new(rank::BLAS_BUILT_INDEX, Some(built_index)),
15301532
handle,
1531-
label: blas.label.clone() + " compacted",
1533+
label: new_label,
15321534
tracking_data: TrackingData::new(blas.device.tracker_indices.blas_s.clone()),
15331535
compaction_buffer: None,
15341536
compacted_state: Mutex::new(rank::BLAS_COMPACTION_STATE, BlasCompactState::Compacted),

0 commit comments

Comments
 (0)