mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
4e456ebde4
commit
b50bb53630
1 changed files with 1 additions and 1 deletions
|
|
@ -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, ¶ms.src, src_x,
|
||||
src_width, src_height);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue