1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-28 07:54:14 +01:00

[dxbc] Re-enable Nvidia workarounds if __GL_NextGenCompiler is '0'

Fixes potential regressions when using the old SPIR-V compiler.
This commit is contained in:
Philip Rebohle 2018-04-11 00:26:42 +02:00
parent 1b6442b859
commit 3ff437ddbe
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -10,7 +10,8 @@ namespace dxvk {
const DxvkGpuVendor vendor = static_cast<DxvkGpuVendor>(devProps.vendorID); const DxvkGpuVendor vendor = static_cast<DxvkGpuVendor>(devProps.vendorID);
if (vendor == DxvkGpuVendor::Nvidia if (vendor == DxvkGpuVendor::Nvidia
&& devProps.driverVersion <= VK_MAKE_VERSION(396, 18, 0)) { && (devProps.driverVersion < VK_MAKE_VERSION(396, 18, 0)
|| getEnvVar(L"__GL_NextGenCompiler") != "0")) {
// Older versions of the driver expect the // Older versions of the driver expect the
// coordinate vector to have an extra component // coordinate vector to have an extra component
this->addExtraDrefCoordComponent = true; this->addExtraDrefCoordComponent = true;