@@ -405,8 +405,7 @@ impl Global {
405405 // Platform validation requires that the staging buffer always be
406406 // freed, even if an error occurs. All paths from here must call
407407 // `device.pending_writes.consume`.
408- let ( staging_buffer, staging_buffer_ptr) =
409- StagingBuffer :: new ( device, data_size, device. instance_flags ) ?;
408+ let ( staging_buffer, staging_buffer_ptr) = StagingBuffer :: new ( device, data_size) ?;
410409 let mut pending_writes = device. pending_writes . lock ( ) ;
411410 let pending_writes = pending_writes. as_mut ( ) . unwrap ( ) ;
412411
@@ -449,8 +448,7 @@ impl Global {
449448
450449 let device = & queue. device ;
451450
452- let ( staging_buffer, staging_buffer_ptr) =
453- StagingBuffer :: new ( device, buffer_size, device. instance_flags ) ?;
451+ let ( staging_buffer, staging_buffer_ptr) = StagingBuffer :: new ( device, buffer_size) ?;
454452
455453 let fid = hub. staging_buffers . prepare ( id_in) ;
456454 let id = fid. assign ( Arc :: new ( staging_buffer) ) ;
@@ -781,8 +779,7 @@ impl Global {
781779 // Platform validation requires that the staging buffer always be
782780 // freed, even if an error occurs. All paths from here must call
783781 // `device.pending_writes.consume`.
784- let ( staging_buffer, staging_buffer_ptr) =
785- StagingBuffer :: new ( device, stage_size, device. instance_flags ) ?;
782+ let ( staging_buffer, staging_buffer_ptr) = StagingBuffer :: new ( device, stage_size) ?;
786783
787784 if stage_bytes_per_row == bytes_per_row {
788785 profiling:: scope!( "copy aligned" ) ;
0 commit comments