surface_base: Fix issue with GetCopyableInterval

This commit is contained in:
GPUCode
2023-01-26 15:04:15 +02:00
parent a629aa0dde
commit 382b64d3c0

View File

@ -152,7 +152,7 @@ SurfaceInterval SurfaceBase<S>::GetCopyableInterval(const SurfaceParams& params)
params.addr +
Common::AlignDown(boost::icl::last_next(valid_interval) - params.addr, tile_align)};
if (params.BytesInPixels(tile_align) > boost::icl::length(valid_interval) ||
if (tile_align > boost::icl::length(valid_interval) ||
boost::icl::length(aligned_interval) == 0) {
continue;
}