summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-05-10 19:06:19 -0400
committerLioncash <mathew1800@gmail.com>2018-05-10 19:42:20 -0400
commitba01f6dba3cf1858ed64bc7f1abee744ffd313ec (patch)
tree277ae9faa7dabc173cbe2d2c9b77db850d5c682e /Source/Core/VideoCommon
parent3cca05185029ae4572529bf986675c772cc0ac5a (diff)
CommonFuncs: Convert ROUND_UP_POW2 macro to a function
Also move it to MathUtils where it belongs with the rest of the power-of-two functions. This gets rid of pollution of the current scope of any translation unit with b<value> macros that aren't intended to be used directly.
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.h b/Source/Core/VideoCommon/VertexManagerBase.h
index 4d07b08411..88d9d9fbe0 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.h
+++ b/Source/Core/VideoCommon/VertexManagerBase.h
@@ -7,8 +7,8 @@
#include <memory>
#include <vector>
-#include "Common/CommonFuncs.h"
#include "Common/CommonTypes.h"
+#include "Common/MathUtil.h"
#include "VideoCommon/RenderState.h"
#include "VideoCommon/ShaderCache.h"
@@ -37,10 +37,10 @@ private:
public:
static constexpr u32 MAXVBUFFERSIZE =
- ROUND_UP_POW2(MAX_PRIMITIVES_PER_COMMAND * LARGEST_POSSIBLE_VERTEX);
+ MathUtil::NextPowerOf2(MAX_PRIMITIVES_PER_COMMAND * LARGEST_POSSIBLE_VERTEX);
// We may convert triangle-fans to triangle-lists, almost 3x as many indices.
- static constexpr u32 MAXIBUFFERSIZE = ROUND_UP_POW2(MAX_PRIMITIVES_PER_COMMAND * 3);
+ static constexpr u32 MAXIBUFFERSIZE = MathUtil::NextPowerOf2(MAX_PRIMITIVES_PER_COMMAND * 3);
VertexManagerBase();
// needs to be virtual for DX11's dtor