[dxbc] Enable CapabilitySampleRateShading capability when needed

Fixes SPIR-V validation errors in the Final Fantasy XV benchmark.
This commit is contained in:
Philip Rebohle 2018-04-08 21:06:58 +02:00
parent 4c3e77e9e3
commit 797d7ec81d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 3 additions and 1 deletions

View File

@ -586,8 +586,10 @@ namespace dxvk {
m_module.decorate(varId, spv::DecorationNoPerspective);
if (im == DxbcInterpolationMode::LinearSample
|| im == DxbcInterpolationMode::LinearNoPerspectiveSample)
|| im == DxbcInterpolationMode::LinearNoPerspectiveSample) {
m_module.enableCapability(spv::CapabilitySampleRateShading);
m_module.decorate(varId, spv::DecorationSample);
}
// Declare the input slot as defined
m_interfaceSlots.inputSlots |= 1u << regIdx;