mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-27 22:54:16 +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:
parent
d4cb5115e7
commit
1e7a05c796
@ -63,12 +63,6 @@ namespace dxvk {
|
|||||||
return E_INVALIDARG;
|
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
|
// Flush in order to make sure the query commands get dispatched
|
||||||
if ((GetDataFlags & D3D11_ASYNC_GETDATA_DONOTFLUSH) == 0)
|
if ((GetDataFlags & D3D11_ASYNC_GETDATA_DONOTFLUSH) == 0)
|
||||||
Flush();
|
Flush();
|
||||||
|
@ -7,7 +7,6 @@ namespace dxvk {
|
|||||||
const static std::unordered_map<std::string, D3D11OptionSet> g_d3d11AppOptions = {{
|
const static std::unordered_map<std::string, D3D11OptionSet> g_d3d11AppOptions = {{
|
||||||
{ "Dishonored2.exe", D3D11OptionSet(D3D11Option::AllowMapFlagNoWait) },
|
{ "Dishonored2.exe", D3D11OptionSet(D3D11Option::AllowMapFlagNoWait) },
|
||||||
{ "FarCry5.exe", D3D11OptionSet(D3D11Option::AllowMapFlagNoWait) },
|
{ "FarCry5.exe", D3D11OptionSet(D3D11Option::AllowMapFlagNoWait) },
|
||||||
{ "Fallout4.exe", D3D11OptionSet(D3D11Option::DisableGetDataFlagDoNotFlush) },
|
|
||||||
{ "Overwatch.exe", D3D11OptionSet(D3D11Option::FakeStreamOutSupport) },
|
{ "Overwatch.exe", D3D11OptionSet(D3D11Option::FakeStreamOutSupport) },
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
@ -15,15 +15,6 @@ namespace dxvk {
|
|||||||
*/
|
*/
|
||||||
AllowMapFlagNoWait = 0,
|
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
|
* \brief Fakes stream output support
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user