GS/HW: Fix incorrect usage of bit_ceil()

This commit is contained in:
Stenzek 2023-07-23 23:51:51 +10:00 committed by refractionpcsx2
parent a6fbd0fe69
commit 2033f813da
1 changed files with 1 additions and 1 deletions

View File

@ -4456,7 +4456,7 @@ bool GSRendererHW::CanUseTexIsFB(const GSTextureCache::Target* rt, const GSTextu
}
else if (clamp == CLAMP_REGION_REPEAT)
{
const u32 req_tbits = (tmax > 1) ? std::bit_ceil(static_cast<u32>(tmax - 1) - 1) : 0x1;
const u32 req_tbits = (tmax > 1) ? (std::bit_ceil(static_cast<u32>(tmax - 1)) - 1) : 0x1;
if ((min & req_tbits) != req_tbits)
{
GL_CACHE("Can't use tex-is-fb because of REGION_REPEAT [%d, %d] with TMM of [%d, %d] and tbits of %d",