1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 10:24:12 +01:00

[dxbc] Remove DeferKill flag

This behaviour is correct, and needs to be enabled by default.
This commit is contained in:
Philip Rebohle 2018-11-07 10:08:55 +01:00
parent 968a085f1e
commit a574829bb6
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 1 additions and 7 deletions

View File

@ -6160,7 +6160,7 @@ namespace dxvk {
// We may have to defer kill operations to the end of
// the shader in order to keep derivatives correct.
if (m_analysis->usesKill && m_analysis->usesDerivatives && m_moduleInfo.options.deferKill) {
if (m_analysis->usesKill && m_analysis->usesDerivatives) {
m_ps.killState = m_module.newVarInit(
m_module.defPointerType(m_module.defBoolType(), spv::StorageClassPrivate),
spv::StorageClassPrivate, m_module.constBool(false));

View File

@ -13,7 +13,6 @@ namespace dxvk {
const DxvkDeviceFeatures& devFeatures = device->features();
useStorageImageReadWithoutFormat = devFeatures.core.features.shaderStorageImageReadWithoutFormat;
deferKill = true;
}
}

View File

@ -10,11 +10,6 @@ namespace dxvk {
/// Use the ShaderImageReadWithoutFormat capability.
bool useStorageImageReadWithoutFormat = false;
/// Defer kill operation to the end of the shader.
/// Fixes derivatives that are undefined due to
/// non-uniform control flow in fragment shaders.
bool deferKill = false;
};
}