mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +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
|
||||
# - Auto: DXVK will pick automatically
|
||||
|
||||
# d3d9.floatEmulation = True
|
||||
# d3d9.floatEmulation = Auto
|
||||
|
||||
|
||||
# Enable dialog box mode
|
||||
|
@ -81,13 +81,19 @@ namespace dxvk {
|
||||
0, 0);
|
||||
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") {
|
||||
d3d9FloatEmulation = D3D9FloatEmulation::Strict;
|
||||
d3d9FloatEmulation = D3D9FloatEmulation::Strict;
|
||||
} else if (floatEmulation == "false") {
|
||||
d3d9FloatEmulation = D3D9FloatEmulation::Disabled;
|
||||
d3d9FloatEmulation = D3D9FloatEmulation::Disabled;
|
||||
} else if (floatEmulation == "true") {
|
||||
d3d9FloatEmulation = D3D9FloatEmulation::Enabled;
|
||||
} 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