diff --git a/wgpu-core/src/command/transfer.rs b/wgpu-core/src/command/transfer.rs index 84bc88e723f..5f7db3c0b4e 100644 --- a/wgpu-core/src/command/transfer.rs +++ b/wgpu-core/src/command/transfer.rs @@ -704,11 +704,6 @@ impl Global { .into()); } - if size == 0 { - log::trace!("Ignoring copy_buffer_to_buffer of size 0"); - return Ok(()); - } - // Make sure source is initialized memory and mark dest as initialized. cmd_buf_data.buffer_memory_init_actions.extend( dst_buffer.initialization_status.read().create_action( @@ -777,11 +772,6 @@ impl Global { let buffer_memory_init_actions = &mut cmd_buf_data.buffer_memory_init_actions; let texture_memory_actions = &mut cmd_buf_data.texture_memory_actions; - if copy_size.width == 0 || copy_size.height == 0 || copy_size.depth_or_array_layers == 0 { - log::trace!("Ignoring copy_buffer_to_texture of size 0"); - return Ok(()); - } - let dst_texture = hub .textures .get(destination.texture) @@ -947,11 +937,6 @@ impl Global { let buffer_memory_init_actions = &mut cmd_buf_data.buffer_memory_init_actions; let texture_memory_actions = &mut cmd_buf_data.texture_memory_actions; - if copy_size.width == 0 || copy_size.height == 0 || copy_size.depth_or_array_layers == 0 { - log::trace!("Ignoring copy_texture_to_buffer of size 0"); - return Ok(()); - } - let src_texture = hub .textures .get(source.texture) @@ -1131,11 +1116,6 @@ impl Global { let tracker = &mut cmd_buf_data.trackers; let texture_memory_actions = &mut cmd_buf_data.texture_memory_actions; - if copy_size.width == 0 || copy_size.height == 0 || copy_size.depth_or_array_layers == 0 { - log::trace!("Ignoring copy_texture_to_texture of size 0"); - return Ok(()); - } - let src_texture = hub .textures .get(source.texture)