Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsx: Enable primitive restart index only when needed #6889

Merged
merged 9 commits into from
Oct 28, 2019
8 changes: 4 additions & 4 deletions rpcs3/Emu/RSX/rsx_methods.h
Original file line number Diff line number Diff line change
Expand Up @@ -687,13 +687,13 @@ namespace rsx

bool restart_index_enabled() const
{
if (const u32 idx = restart_index();
idx > (index_type() == rsx::index_array_type::u16 ? 0xffff : 0xfffff))
if (!restart_index_enabled_raw())
{
return false;
}

return restart_index_enabled_raw();
}

return restart_index() > (index_type() == rsx::index_array_type::u16 ? 0xffff : 0xfffff);
elad335 marked this conversation as resolved.
Show resolved Hide resolved
}

u32 z_clear_value(bool is_depth_stencil) const
Expand Down