rsx: Align width properly when normalizing to avoid fractional results being lowered to 0

This commit is contained in:
kd-11 2019-09-28 20:52:28 +03:00 committed by kd-11
parent 69c090b14a
commit ef5b56bc48

View file

@ -839,7 +839,7 @@ namespace rsx
{ {
// Width is calculated in the coordinate-space of the requester; normalize // Width is calculated in the coordinate-space of the requester; normalize
info.src_x = (info.src_x * required_bpp) / surface_bpp; info.src_x = (info.src_x * required_bpp) / surface_bpp;
info.width = (info.width * required_bpp) / surface_bpp; info.width = align(info.width * required_bpp, surface_bpp) / surface_bpp;
} }
result.push_back(info); result.push_back(info);