gallium/auxiliary: Fix coordinates clamp in util_compute_blit
Fixes: 7c8e1596d6 ("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>
This commit is contained in:
parent
ef0546152f
commit
e9091b1f5c
1 changed files with 4 additions and 2 deletions
|
|
@ -106,8 +106,10 @@ void util_compute_blit(struct pipe_context *ctx, struct pipe_blit_info *blit_inf
|
|||
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};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue