nvk: Pass the pipe_format to copy_remap_format()

This changed in 76c6157902f1 ("nil/copy: Base swizzling on the per-plane
pipe_format") but I missed the case for linear render targets.

Fixes: 76c6157902f1 ("nil/copy: Base swizzling on the per-plane pipe_format")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35887>
This commit is contained in:
Faith Ekstrand 2025-07-02 10:11:30 -04:00 committed by Marge Bot
parent c733f07378
commit bb3274f0d8

View file

@ -682,7 +682,8 @@ nvk_linear_render_copy(struct nvk_cmd_buffer *cmd,
src_plane->nil.sample_layout),
};
copy.remap = nouveau_copy_remap_format(image->vk.format);
assert(src_plane->nil.format.p_format == dst_plane->nil.format.p_format);
copy.remap = nouveau_copy_remap_format(src_plane->nil.format.p_format);
nouveau_copy_rect(cmd, &copy);
}