mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
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:
parent
1cf778e011
commit
741763f32c
2 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue