886: [0.6] Backport buffer and texture overrun error messages r=kvark a=cwfitzgerald

**Connections**

#885 but neutered to be a non-breaking change.

**Description**

The original error message talked only about the destination buffer, which is very confusing as the cause of the overrun could be the source buffer.

Not worth a release on its own, but next time there's a release, we can get this fixed.

**Testing**

Strings only.


Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
This commit is contained in:
bors[bot] 2020-08-19 15:34:32 +00:00 committed by GitHub
commit 6455b634e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ pub enum TransferError {
MissingCopySrcUsageFlag,
#[error("destination buffer/texture is missing the `COPY_DST` usage flag")]
MissingCopyDstUsageFlag,
#[error("copy would end up overruning the bounds of the destination buffer/texture")]
#[error("copy would end up overruning the bounds of one of the buffers or textures")]
BufferOverrun,
#[error("buffer offset {0} is not aligned to block size or `COPY_BUFFER_ALIGNMENT`")]
UnalignedBufferOffset(BufferAddress),