mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
[gfx] Cherry-pick chromium:1864587
This commit is contained in:
parent
ce3cc6b74d
commit
580e04c8a8
1 changed files with 6 additions and 6 deletions
|
|
@ -186,11 +186,11 @@ bool VariablePacker::CheckVariablesWithinPackingLimits(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
topNonFullRow_ += GetNumRows(variable.type) * variable.elementCount();
|
topNonFullRow_ += GetNumRows(variable.type) * variable.elementCount();
|
||||||
}
|
|
||||||
|
|
||||||
if (topNonFullRow_ > maxRows_) {
|
if (topNonFullRow_ > maxRows_) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Packs the 3 column variables.
|
// Packs the 3 column variables.
|
||||||
int num3ColumnRows = 0;
|
int num3ColumnRows = 0;
|
||||||
|
|
@ -200,11 +200,11 @@ bool VariablePacker::CheckVariablesWithinPackingLimits(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
num3ColumnRows += GetNumRows(variable.type) * variable.elementCount();
|
num3ColumnRows += GetNumRows(variable.type) * variable.elementCount();
|
||||||
}
|
|
||||||
|
|
||||||
if (topNonFullRow_ + num3ColumnRows > maxRows_) {
|
if (topNonFullRow_ + num3ColumnRows > maxRows_) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fillColumns(topNonFullRow_, num3ColumnRows, 0, 3);
|
fillColumns(topNonFullRow_, num3ColumnRows, 0, 3);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue