1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 19:24:10 +01:00

[d3d11] Remove GetData do-not-flush workaround for Fallout 4

Not needed anymore due to the implicit flush.
This commit is contained in:
Philip Rebohle 2018-06-08 13:13:42 +02:00
parent d4cb5115e7
commit 1e7a05c796
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 0 additions and 16 deletions

View File

@ -63,12 +63,6 @@ namespace dxvk {
return E_INVALIDARG;
}
// Fallout 4 never actually calls this function without
// D3D11_ASYNC_GETDATA_DONOTFLUSH set, which may cause
// the game to freeze in certain situations.
if (m_parent->TestOption(D3D11Option::DisableGetDataFlagDoNotFlush))
GetDataFlags &= ~D3D11_ASYNC_GETDATA_DONOTFLUSH;
// Flush in order to make sure the query commands get dispatched
if ((GetDataFlags & D3D11_ASYNC_GETDATA_DONOTFLUSH) == 0)
Flush();

View File

@ -7,7 +7,6 @@ namespace dxvk {
const static std::unordered_map<std::string, D3D11OptionSet> g_d3d11AppOptions = {{
{ "Dishonored2.exe", D3D11OptionSet(D3D11Option::AllowMapFlagNoWait) },
{ "FarCry5.exe", D3D11OptionSet(D3D11Option::AllowMapFlagNoWait) },
{ "Fallout4.exe", D3D11OptionSet(D3D11Option::DisableGetDataFlagDoNotFlush) },
{ "Overwatch.exe", D3D11OptionSet(D3D11Option::FakeStreamOutSupport) },
}};

View File

@ -15,15 +15,6 @@ namespace dxvk {
*/
AllowMapFlagNoWait = 0,
/**
* \brief Ignore D3D11_ASYNC_GETDATA_DONOTFLUSH
*
* This can cause significant slowdowns, but some games
* expect the implementation to flush the context even
* when passing the \c DONOTFLUSH flag.
*/
DisableGetDataFlagDoNotFlush = 1,
/**
* \brief Fakes stream output support
*