mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d9] Enable strict float emulation by default for new radv.
This commit is contained in:
parent
a268de51e3
commit
14df2f7251
@ -343,7 +343,7 @@
|
|||||||
# - Strict: Use a slower but more correct approach. Necessary for some games
|
# - Strict: Use a slower but more correct approach. Necessary for some games
|
||||||
# - Auto: DXVK will pick automatically
|
# - Auto: DXVK will pick automatically
|
||||||
|
|
||||||
# d3d9.floatEmulation = True
|
# d3d9.floatEmulation = Auto
|
||||||
|
|
||||||
|
|
||||||
# Enable dialog box mode
|
# Enable dialog box mode
|
||||||
|
@ -81,13 +81,19 @@ namespace dxvk {
|
|||||||
0, 0);
|
0, 0);
|
||||||
applyTristate(this->generalHazards, config.getOption<Tristate>("d3d9.generalHazards", Tristate::Auto));
|
applyTristate(this->generalHazards, config.getOption<Tristate>("d3d9.generalHazards", Tristate::Auto));
|
||||||
|
|
||||||
std::string floatEmulation = Config::toLower(config.getOption<std::string>("d3d9.floatEmulation", "true"));
|
std::string floatEmulation = Config::toLower(config.getOption<std::string>("d3d9.floatEmulation", "auto"));
|
||||||
if (floatEmulation == "strict") {
|
if (floatEmulation == "strict") {
|
||||||
d3d9FloatEmulation = D3D9FloatEmulation::Strict;
|
d3d9FloatEmulation = D3D9FloatEmulation::Strict;
|
||||||
} else if (floatEmulation == "false") {
|
} else if (floatEmulation == "false") {
|
||||||
d3d9FloatEmulation = D3D9FloatEmulation::Disabled;
|
d3d9FloatEmulation = D3D9FloatEmulation::Disabled;
|
||||||
|
} else if (floatEmulation == "true") {
|
||||||
|
d3d9FloatEmulation = D3D9FloatEmulation::Enabled;
|
||||||
} else {
|
} else {
|
||||||
d3d9FloatEmulation = D3D9FloatEmulation::Enabled;
|
bool hasMulz = adapter->matchesDriver(DxvkGpuVendor::Amd,
|
||||||
|
VK_DRIVER_ID_MESA_RADV,
|
||||||
|
VK_MAKE_VERSION(21, 99, 99),
|
||||||
|
0);
|
||||||
|
d3d9FloatEmulation = hasMulz ? D3D9FloatEmulation::Strict : D3D9FloatEmulation::Enabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user