radv: fix optimized MSAA copies with suballocated images
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: deb4685df3
("radv: implement optimized MSAA copies using FMASK")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5829
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14705>
This commit is contained in:
parent
e4218e5c4d
commit
7a0cf7f6d1
|
@ -238,8 +238,8 @@ radv_fixup_copy_dst_metadata(struct radv_cmd_buffer *cmd_buffer, const struct ra
|
|||
|
||||
/* Copy CMASK+FMASK. */
|
||||
size = src_image->planes[0].surface.cmask_size + src_image->planes[0].surface.fmask_size;
|
||||
src_offset = src_image->planes[0].surface.fmask_offset;
|
||||
dst_offset = dst_image->planes[0].surface.fmask_offset;
|
||||
src_offset = src_image->offset + src_image->planes[0].surface.fmask_offset;
|
||||
dst_offset = dst_image->offset + dst_image->planes[0].surface.fmask_offset;
|
||||
|
||||
radv_copy_buffer(cmd_buffer, src_image->bo, dst_image->bo, src_offset, dst_offset, size);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue