mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-03 22:24:13 +01:00
[d3d11] Rename dcMapSpeedHack to dcSingleUseMode
This commit is contained in:
parent
ad5688764c
commit
bfb7e54218
@ -66,10 +66,10 @@ namespace dxvk {
|
||||
|
||||
void D3D11CommandList::MarkSubmitted() {
|
||||
if (m_submitted.exchange(true) && !m_warned.exchange(true)
|
||||
&& m_device->GetOptions()->dcMapSpeedHack) {
|
||||
&& m_device->GetOptions()->dcSingleUseMode) {
|
||||
Logger::warn(
|
||||
"D3D11: Command list submitted multiple times,\n"
|
||||
" but d3d11.dcMapSpeedHack is enabled");
|
||||
" but d3d11.dcSingleUseMode is enabled");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -170,7 +170,7 @@ namespace dxvk {
|
||||
pMapEntry->RowPitch = pBuffer->Desc()->ByteWidth;
|
||||
pMapEntry->DepthPitch = pBuffer->Desc()->ByteWidth;
|
||||
|
||||
if (pBuffer->Desc()->Usage == D3D11_USAGE_DYNAMIC && m_parent->GetOptions()->dcMapSpeedHack) {
|
||||
if (pBuffer->Desc()->Usage == D3D11_USAGE_DYNAMIC && m_csFlags.test(DxvkCsChunkFlag::SingleUse)) {
|
||||
// For resources that cannot be written by the GPU,
|
||||
// we may write to the buffer resource directly and
|
||||
// just swap in the physical buffer slice as needed.
|
||||
@ -237,7 +237,7 @@ namespace dxvk {
|
||||
const D3D11DeferredContextMapEntry* pMapEntry) {
|
||||
D3D11Buffer* pBuffer = static_cast<D3D11Buffer*>(pResource);
|
||||
|
||||
if (pBuffer->Desc()->Usage == D3D11_USAGE_DYNAMIC && m_parent->GetOptions()->dcMapSpeedHack) {
|
||||
if (pBuffer->Desc()->Usage == D3D11_USAGE_DYNAMIC && m_csFlags.test(DxvkCsChunkFlag::SingleUse)) {
|
||||
EmitCs([
|
||||
cDstBuffer = pBuffer->GetBuffer(),
|
||||
cPhysSlice = pMapEntry->BufferSlice
|
||||
@ -301,7 +301,7 @@ namespace dxvk {
|
||||
|
||||
DxvkCsChunkFlags D3D11DeferredContext::GetCsChunkFlags(
|
||||
D3D11Device* pDevice) {
|
||||
return pDevice->GetOptions()->dcMapSpeedHack
|
||||
return pDevice->GetOptions()->dcSingleUseMode
|
||||
? DxvkCsChunkFlags(DxvkCsChunkFlag::SingleUse)
|
||||
: DxvkCsChunkFlags();
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ namespace dxvk {
|
||||
|
||||
D3D11Options::D3D11Options(const Config& config) {
|
||||
this->allowMapFlagNoWait = config.getOption<bool>("d3d11.allowMapFlagNoWait", false);
|
||||
this->dcMapSpeedHack = config.getOption<bool>("d3d11.dcMapSpeedHack", true);
|
||||
this->dcSingleUseMode = config.getOption<bool>("d3d11.dcSingleUseMode", true);
|
||||
this->fakeStreamOutSupport = config.getOption<bool>("d3d11.fakeStreamOutSupport", false);
|
||||
this->maxTessFactor = config.getOption<int32_t>("d3d11.maxTessFactor", 0);
|
||||
this->samplerAnisotropy = config.getOption<int32_t>("d3d11.samplerAnisotropy", -1);
|
||||
|
@ -31,7 +31,7 @@ namespace dxvk {
|
||||
/// This can substantially speed up some games, but may
|
||||
/// cause issues if the game submits command lists more
|
||||
/// than once.
|
||||
bool dcMapSpeedHack;
|
||||
bool dcSingleUseMode;
|
||||
|
||||
/// Fakes stream output support.
|
||||
///
|
||||
|
@ -34,11 +34,11 @@ namespace dxvk {
|
||||
}} },
|
||||
/* The Evil Within */
|
||||
{ "EvilWithin.exe", {{
|
||||
{ "d3d11.dcMapSpeedHack", "False" },
|
||||
{ "d3d11.dcSingleUseMode", "False" },
|
||||
}} },
|
||||
/* The Evil Within Demo */
|
||||
{ "EvilWithinDemo.exe", {{
|
||||
{ "d3d11.dcMapSpeedHack", "False" },
|
||||
{ "d3d11.dcSingleUseMode", "False" },
|
||||
}} },
|
||||
/* F1 2015 */
|
||||
{ "F1_2015.exe", {{
|
||||
|
Loading…
Reference in New Issue
Block a user