mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 15:30:40 +02:00
amdgpu/addrlib: support non-power2 height alignment (for linear surface)
This commit is contained in:
parent
c867a2b222
commit
ca88f83222
1 changed files with 10 additions and 1 deletions
|
|
@ -3278,7 +3278,16 @@ VOID Lib::PadDimensions(
|
|||
|
||||
if (padDims > 1)
|
||||
{
|
||||
*pHeight = PowTwoAlign((*pHeight), heightAlign);
|
||||
if (IsPow2(heightAlign))
|
||||
{
|
||||
*pHeight = PowTwoAlign((*pHeight), heightAlign);
|
||||
}
|
||||
else
|
||||
{
|
||||
*pHeight += heightAlign - 1;
|
||||
*pHeight /= heightAlign;
|
||||
*pHeight *= heightAlign;
|
||||
}
|
||||
}
|
||||
|
||||
if (padDims > 2 || thickness > 1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue