mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 06:38:46 +00:00
Use _MB macro for size constant
This commit is contained in:
parent
bd1b67492a
commit
ae6a8004fa
1 changed files with 3 additions and 3 deletions
|
@ -1092,9 +1092,9 @@ public:
|
||||||
GpuQueue& gfx_queue = mapped_queues[GfxQueueId];
|
GpuQueue& gfx_queue = mapped_queues[GfxQueueId];
|
||||||
std::scoped_lock<std::mutex> lk(gfx_queue.m_access);
|
std::scoped_lock<std::mutex> lk(gfx_queue.m_access);
|
||||||
|
|
||||||
constexpr size_t gfx_reserved_size = (2 << 21) / sizeof(u32); // 2MB
|
constexpr size_t GfxReservedSize = 2_MB >> 2;
|
||||||
gfx_queue.ccb_buffer.reserve(gfx_reserved_size);
|
gfx_queue.ccb_buffer.reserve(GfxReservedSize);
|
||||||
gfx_queue.dcb_buffer.reserve(gfx_reserved_size);
|
gfx_queue.dcb_buffer.reserve(GfxReservedSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue