Fixes:
7c8e1596d6e ("gallium/auxiliary: Fix util_compute_blit half texel offset with scaling")
Acked-by: Thong Thai <thong.thai@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26123>
(cherry picked from commit
e9091b1f5c2ef50aba36f5e71fb6cf88ffc31cbb)
"description": "gallium/auxiliary: Fix coordinates clamp in util_compute_blit",
"nominated": true,
"nomination_type": 1,
- "resolution": 0,
+ "resolution": 1,
"main_sha": null,
"because_sha": "7c8e1596d6ef12c27ffe713b173023b1e38e52cb",
"notes": null
blit_info->dst.box.y,
blit_info->dst.box.z,
0,
- u_bitcast_f2u((blit_info->src.box.width - 0.5) / (float)src->width0),
- u_bitcast_f2u((blit_info->src.box.height - 0.5) / (float)src->height0),
+ u_bitcast_f2u((blit_info->src.box.x + blit_info->src.box.width - 0.5) /
+ (float)src->width0),
+ u_bitcast_f2u((blit_info->src.box.y + blit_info->src.box.height - 0.5) /
+ (float)src->height0),
0,
0};