rusticl/mem: fix Mem::copy_rect
authorKarol Herbst <kherbst@redhat.com>
Wed, 12 Apr 2023 16:40:50 +0000 (18:40 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 13 Apr 2023 20:23:44 +0000 (20:23 +0000)
commit68df8cc79d0537082d76a9091f96d6fe54244d75
tree77717d2bac97f0dd097bf52a3203b78dfbc030b6
parent3e118e89102d5bcdaf6f26ef7b43833b9e8d9881
rusticl/mem: fix Mem::copy_rect

The old code was kinda bogus as we mapped at (0, 0, 0), but then didn't
take the origin into account when specifiying the size of the access.

Just offset properly instead.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22449>
src/gallium/frontends/rusticl/core/memory.rs