intel/blorp: Fix width scaling for YCBCR copies

Fixes: eb8883f3ef ("intel/blorp: Redescribe surfaces for copies")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/15267
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40930>
This commit is contained in:
Nanley Chery 2026-04-13 10:56:48 -04:00 committed by Marge Bot
parent 4e456ebde4
commit b50bb53630

View file

@ -3327,7 +3327,7 @@ blorp_copy(struct blorp_batch *batch,
uint32_t dst_height = src_height;
if (isl_format_is_yuv(src_fmtl->format) !=
isl_format_is_yuv(dst_fmtl->format))
dst_width *= src_fmtl->bpb / dst_fmtl->bpb;
dst_width = src_width * src_fmtl->bpb / dst_fmtl->bpb;
int max_fmt_scale_src = get_max_format_scale(isl_dev, &params.src, src_x,
src_width, src_height);