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:
Eladash 2019-10-28 22:16:27 +02:00 committed by Ivan
parent 83cf6e6fa3
commit 42fc698186
5 changed files with 31 additions and 35 deletions

View file

@ -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);
}
}