mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
rsx: Enable primitive restart index only when needed (#6889)
* rsx: Enable primitive restart index only when needed * rsx: Use if with initializer in read_put()
This commit is contained in:
parent
83cf6e6fa3
commit
42fc698186
5 changed files with 31 additions and 35 deletions
|
|
@ -39,15 +39,12 @@ namespace rsx
|
|||
}
|
||||
else
|
||||
{
|
||||
u32 put = m_ctrl->put;
|
||||
if (LIKELY((put & 3) == 0))
|
||||
if (u32 put = m_ctrl->put; LIKELY((put & 3) == 0))
|
||||
{
|
||||
return put;
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_ctrl->put.and_fetch(~3);
|
||||
}
|
||||
|
||||
return m_ctrl->put.and_fetch(~3);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue