mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-10-01 13:49:09 +00:00
RSX: fix 'Working buffer not big enough'
This commit is contained in:
parent
ace187cdd0
commit
0a7a12bbff
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ protected:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Grow the buffer to hold at least size bytes
|
// Grow the buffer to hold at least size bytes
|
||||||
virtual bool grow(usz /*size*/)
|
virtual bool grow(usz /*size*/)
|
||||||
{
|
{
|
||||||
// Stub
|
// Stub
|
||||||
|
@ -87,7 +87,7 @@ public:
|
||||||
const usz alloc_size = utils::align(size, Alignment);
|
const usz alloc_size = utils::align(size, Alignment);
|
||||||
const usz aligned_put_pos = utils::align(m_put_pos, Alignment);
|
const usz aligned_put_pos = utils::align(m_put_pos, Alignment);
|
||||||
|
|
||||||
if (!can_alloc<Alignment>(size) && !grow(aligned_put_pos + alloc_size))
|
if (!can_alloc<Alignment>(size) && !grow(alloc_size))
|
||||||
{
|
{
|
||||||
fmt::throw_exception("[%s] Working buffer not big enough, buffer_length=%d allocated=%d requested=%d guard=%d largest_pool=%d",
|
fmt::throw_exception("[%s] Working buffer not big enough, buffer_length=%d allocated=%d requested=%d guard=%d largest_pool=%d",
|
||||||
m_name, m_size, m_current_allocated_size, size, m_min_guard_size, m_largest_allocated_pool);
|
m_name, m_size, m_current_allocated_size, size, m_min_guard_size, m_largest_allocated_pool);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue