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>
(cherry picked from commit a2a3be3baa)
This commit is contained in:
Karol Herbst 2025-02-05 11:36:10 +01:00 committed by Eric Engestrom
parent 1cf778e011
commit 741763f32c
2 changed files with 1 additions and 2 deletions

View file

@ -824,7 +824,7 @@
"description": "rusticl/mem: do not apply offset with in copy_image_to_buffer",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -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;