File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1465,6 +1465,8 @@ impl Queue {
1465
1465
profiling:: scope!( "Queue::compact_blas" ) ;
1466
1466
api_log ! ( "Queue::compact_blas" ) ;
1467
1467
1468
+ let new_label = blas. label . clone ( ) + " (compacted)" ;
1469
+
1468
1470
self . device . check_is_valid ( ) ?;
1469
1471
self . same_device_as ( blas. as_ref ( ) ) ?;
1470
1472
@@ -1486,7 +1488,7 @@ impl Queue {
1486
1488
device
1487
1489
. raw ( )
1488
1490
. create_acceleration_structure ( & hal:: AccelerationStructureDescriptor {
1489
- label : None ,
1491
+ label : hal_label ( Some ( & new_label ) , device . instance_flags ) ,
1490
1492
size : size_info. acceleration_structure_size ,
1491
1493
format : hal:: AccelerationStructureFormat :: BottomLevel ,
1492
1494
allow_compaction : false ,
@@ -1528,7 +1530,7 @@ impl Queue {
1528
1530
// Bypass the submit checks which update this because we don't submit this normally.
1529
1531
built_index : RwLock :: new ( rank:: BLAS_BUILT_INDEX , Some ( built_index) ) ,
1530
1532
handle,
1531
- label : blas . label . clone ( ) + " compacted" ,
1533
+ label : new_label ,
1532
1534
tracking_data : TrackingData :: new ( blas. device . tracker_indices . blas_s . clone ( ) ) ,
1533
1535
compaction_buffer : None ,
1534
1536
compacted_state : Mutex :: new ( rank:: BLAS_COMPACTION_STATE , BlasCompactState :: Compacted ) ,
You can’t perform that action at this time.
0 commit comments