rusticl/mem: do not apply offset with in copy_image_to_buffer

The offset already gets applied when mapping the destination buffer, so we
ended up applying it twice.

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33426>
This commit is contained in:
Karol Herbst
2025-02-05 11:36:10 +01:00
committed by Marge Bot
parent dbb7e3cf88
commit a2a3be3baa
@@ -1484,7 +1484,6 @@ impl Image {
dst_offset: usize,
region: &CLVec<usize>,
) -> CLResult<()> {
let dst_offset = dst.apply_offset(dst_offset)?;
let bpp = self.image_format.pixel_size().unwrap().into();
let src_pitch;