mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-18 13:54:16 +01:00
[dxbc] Enable CapabilitySampleRateShading capability when needed
Fixes SPIR-V validation errors in the Final Fantasy XV benchmark.
This commit is contained in:
parent
4c3e77e9e3
commit
797d7ec81d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user