mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
d3d12: Fix powerOf2Align
This commit is contained in:
parent
10cc2c080c
commit
8ad1bc1970
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ size_t powerOf2Align(size_t unalignedVal, size_t powerOf2)
|
||||||
{
|
{
|
||||||
// check that powerOf2 is power of 2
|
// check that powerOf2 is power of 2
|
||||||
assert(!(powerOf2 & (powerOf2 - 1)));
|
assert(!(powerOf2 & (powerOf2 - 1)));
|
||||||
return (unalignedVal + powerOf2 - 1) & ~powerOf2;
|
return (unalignedVal + powerOf2 - 1) & ~(powerOf2 - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue