mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
VideoCommon: add xfb hash values (if available) to present information
This commit is contained in:
parent
e5b7b2e9ee
commit
abf380b705
1 changed files with 19 additions and 0 deletions
|
@ -178,6 +178,25 @@ void Presenter::ViSwap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height,
|
||||||
present_info.reason = PresentInfo::PresentReason::VideoInterface;
|
present_info.reason = PresentInfo::PresentReason::VideoInterface;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_xfb_entry)
|
||||||
|
{
|
||||||
|
// With no references, this XFB copy wasn't stitched together
|
||||||
|
// so just use its name directly
|
||||||
|
if (m_xfb_entry->references.empty())
|
||||||
|
{
|
||||||
|
if (!m_xfb_entry->texture_info_name.empty())
|
||||||
|
present_info.xfb_copy_hashes.push_back(m_xfb_entry->texture_info_name);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (const auto& reference : m_xfb_entry->references)
|
||||||
|
{
|
||||||
|
if (!reference->texture_info_name.empty())
|
||||||
|
present_info.xfb_copy_hashes.push_back(reference->texture_info_name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
BeforePresentEvent::Trigger(present_info);
|
BeforePresentEvent::Trigger(present_info);
|
||||||
|
|
||||||
if (!is_duplicate || !g_ActiveConfig.bSkipPresentingDuplicateXFBs)
|
if (!is_duplicate || !g_ActiveConfig.bSkipPresentingDuplicateXFBs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue