mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 19:24:10 +01:00
[d3d9+util] Remove AllowLockFlagReadonly option
This commit is contained in:
parent
dba7525954
commit
d17f62902d
@ -3957,9 +3957,6 @@ namespace dxvk {
|
||||
if (unlikely((Flags & (D3DLOCK_DISCARD | D3DLOCK_READONLY)) == (D3DLOCK_DISCARD | D3DLOCK_READONLY)))
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
if (unlikely(!m_d3d9Options.allowLockFlagReadonly))
|
||||
Flags &= ~D3DLOCK_READONLY;
|
||||
|
||||
if (unlikely(!m_d3d9Options.allowDoNotWait))
|
||||
Flags &= ~D3DLOCK_DONOTWAIT;
|
||||
|
||||
@ -4337,9 +4334,6 @@ namespace dxvk {
|
||||
if (unlikely(ppbData == nullptr))
|
||||
return D3DERR_INVALIDCALL;
|
||||
|
||||
if (!m_d3d9Options.allowLockFlagReadonly)
|
||||
Flags &= ~D3DLOCK_READONLY;
|
||||
|
||||
if (!m_d3d9Options.allowDiscard)
|
||||
Flags &= ~D3DLOCK_DISCARD;
|
||||
|
||||
|
@ -44,7 +44,6 @@ namespace dxvk {
|
||||
this->shaderModel = config.getOption<int32_t> ("d3d9.shaderModel", 3);
|
||||
this->evictManagedOnUnlock = config.getOption<bool> ("d3d9.evictManagedOnUnlock", false);
|
||||
this->dpiAware = config.getOption<bool> ("d3d9.dpiAware", true);
|
||||
this->allowLockFlagReadonly = config.getOption<bool> ("d3d9.allowLockFlagReadonly", true);
|
||||
this->strictConstantCopies = config.getOption<bool> ("d3d9.strictConstantCopies", false);
|
||||
this->strictPow = config.getOption<bool> ("d3d9.strictPow", true);
|
||||
this->lenientClear = config.getOption<bool> ("d3d9.lenientClear", false);
|
||||
|
@ -34,11 +34,6 @@ namespace dxvk {
|
||||
|
||||
/// Whether or not to set the process as DPI aware in Windows when the API interface is created.
|
||||
bool dpiAware;
|
||||
|
||||
/// Handle D3DLOCK_READONLY properly.
|
||||
///
|
||||
/// Risen 1 writes to buffers mapped with readonly.
|
||||
bool allowLockFlagReadonly;
|
||||
|
||||
/// True: Copy our constant set into UBO if we are relative indexing ever.
|
||||
/// False: Copy our constant set into UBO if we are relative indexing at the start of a defined constant
|
||||
|
@ -236,18 +236,12 @@ namespace dxvk {
|
||||
}} },
|
||||
/* Gothic 3 */
|
||||
{ R"(\\Gothic(3|3Final| III Forsaken Gods)\.exe$)", {{
|
||||
{ "d3d9.allowLockFlagReadonly", "False" },
|
||||
{ "d3d9.supportDFFormats", "False" },
|
||||
}} },
|
||||
/* Risen */
|
||||
{ R"(\\Risen[23]?\.exe$)", {{
|
||||
{ "d3d9.allowLockFlagReadonly", "False" },
|
||||
{ "d3d9.invariantPosition", "True" },
|
||||
}} },
|
||||
/* Nostale */
|
||||
{ R"(\\NostaleClientX\.exe$)", {{
|
||||
{ "d3d9.allowLockFlagReadonly", "False" },
|
||||
}} },
|
||||
/* Sonic Adventure 2 */
|
||||
{ R"(\\Sonic Adventure 2\\(launcher|sonic2app)\.exe$)", {{
|
||||
{ "d3d9.floatEmulation", "False" },
|
||||
@ -277,10 +271,6 @@ namespace dxvk {
|
||||
{ R"(\\Dead Space\.exe$)", {{
|
||||
{ "d3d9.supportDFFormats", "False" },
|
||||
}} },
|
||||
/* Burnout Paradise */
|
||||
{ R"(\\BurnoutParadise\.exe$)", {{
|
||||
{ "d3d9.allowLockFlagReadonly", "False" },
|
||||
}} },
|
||||
/* Halo 2 */
|
||||
{ R"(\\halo2\.exe$)", {{
|
||||
{ "d3d9.invariantPosition", "True" },
|
||||
|
Loading…
Reference in New Issue
Block a user