File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22472247 .map_err(TransferError::from)< span class ="question-mark "> ?</ span > ;
22482248 }
22492249
2250+ < span class ="kw "> let </ span > snatch_guard = < span class ="self "> self</ span > .device.snatchable_lock.read();
2251+
22502252 < span class ="kw "> let </ span > < span class ="kw-2 "> mut </ span > pending_writes = < span class ="self "> self</ span > .pending_writes.lock();
22512253 < span class ="kw "> let </ span > encoder = pending_writes.activate();
22522254
22822284 < span class ="kw-2 "> &mut </ span > trackers.textures,
22832285 < span class ="kw-2 "> &</ span > < span class ="self "> self</ span > .device.alignments,
22842286 < span class ="self "> self</ span > .device.zero_buffer.as_ref(),
2285- < span class ="kw-2 "> &</ span > < span class =" self " > self </ span > .device.snatchable_lock.read() ,
2287+ < span class ="kw-2 "> &</ span > snatch_guard ,
22862288 )
22872289 .map_err(QueueWriteError::from)< span class ="question-mark "> ?</ span > ;
22882290 }
22922294 }
22932295 }
22942296
2295- < span class ="kw "> let </ span > snatch_guard = < span class ="self "> self</ span > .device.snatchable_lock.read();
2296-
22972297 < span class ="kw "> let </ span > dst_raw = dst.try_raw(< span class ="kw-2 "> &</ span > snatch_guard)< span class ="question-mark "> ?</ span > ;
22982298
22992299 < span class ="kw "> let </ span > (block_width, block_height) = dst.desc.format.block_dimensions();
You can’t perform that action at this time.
0 commit comments