mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-03 13:24:20 +01:00
[dxbc] Remove DeferKill flag
This behaviour is correct, and needs to be enabled by default.
This commit is contained in:
parent
968a085f1e
commit
a574829bb6
@ -6160,7 +6160,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
// We may have to defer kill operations to the end of
|
// We may have to defer kill operations to the end of
|
||||||
// the shader in order to keep derivatives correct.
|
// 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_ps.killState = m_module.newVarInit(
|
||||||
m_module.defPointerType(m_module.defBoolType(), spv::StorageClassPrivate),
|
m_module.defPointerType(m_module.defBoolType(), spv::StorageClassPrivate),
|
||||||
spv::StorageClassPrivate, m_module.constBool(false));
|
spv::StorageClassPrivate, m_module.constBool(false));
|
||||||
|
@ -13,7 +13,6 @@ namespace dxvk {
|
|||||||
const DxvkDeviceFeatures& devFeatures = device->features();
|
const DxvkDeviceFeatures& devFeatures = device->features();
|
||||||
|
|
||||||
useStorageImageReadWithoutFormat = devFeatures.core.features.shaderStorageImageReadWithoutFormat;
|
useStorageImageReadWithoutFormat = devFeatures.core.features.shaderStorageImageReadWithoutFormat;
|
||||||
deferKill = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -10,11 +10,6 @@ namespace dxvk {
|
|||||||
|
|
||||||
/// Use the ShaderImageReadWithoutFormat capability.
|
/// Use the ShaderImageReadWithoutFormat capability.
|
||||||
bool useStorageImageReadWithoutFormat = false;
|
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;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user