1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00

[dxbc] Add per-device option for deferred kills

This commit is contained in:
Philip Rebohle 2018-05-26 17:08:39 +02:00
parent ec5572aa69
commit af62d423b2
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,7 @@ namespace dxvk {
if (devFeatures.shaderStorageImageReadWithoutFormat) if (devFeatures.shaderStorageImageReadWithoutFormat)
flags.set(DxbcOption::UseStorageImageReadWithoutFormat); flags.set(DxbcOption::UseStorageImageReadWithoutFormat);
flags.set(DxbcOption::DeferKill);
return flags; return flags;
} }

View File

@ -17,6 +17,11 @@ namespace dxvk {
/// Use FMin/FMax/FClamp instead of NMin/NMax/NClamp. /// Use FMin/FMax/FClamp instead of NMin/NMax/NClamp.
/// Workaround for bugs in older Nvidia drivers. /// Workaround for bugs in older Nvidia drivers.
UseSimpleMinMaxClamp, UseSimpleMinMaxClamp,
/// Defer kill operation to the end of the shader.
/// Fixes derivatives that are undefined due to
/// non-uniform control flow in fragment shaders.
DeferKill,
}; };
using DxbcOptions = Flags<DxbcOption>; using DxbcOptions = Flags<DxbcOption>;