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

[dxbc] Emit Index decoration for pixel shader outputs

Simplifies shader patching when dual-source blending is used.
This commit is contained in:
Philip Rebohle 2018-11-16 19:47:34 +01:00
parent 3e3c31f365
commit f69c5e4c4e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -719,6 +719,10 @@ namespace dxvk {
if (info.sclass == spv::StorageClassOutput) {
m_module.decorateLocation(varId, regIdx);
m_entryPointInterfaces.push_back(varId);
// Add index decoration for potential dual-source blending
if (m_programInfo.type() == DxbcProgramType::PixelShader)
m_module.decorateIndex(varId, 0);
}
m_oRegs.at(regIdx) = { regType, varId };