1054: Flush write_texture staging memory r=kvark a=kvark

**Connections**
Fixes part of https://github.com/gfx-rs/wgpu-rs/issues/648

**Description**
Adds the missing flush to the staging buffer in `write_texture`

**Testing**
Untested

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
This commit is contained in:
bors[bot] 2020-11-28 18:50:44 +00:00 committed by GitHub
commit 9d12d623c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,6 +401,9 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
}
}
stage.memory.unmap(&device.raw);
if !stage.memory.is_coherent() {
stage.memory.flush_range(&device.raw, 0, None)?;
}
let region = hal::command::BufferImageCopy {
buffer_offset: 0,