mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 02:52:10 +01:00
[dxbc] Enable MultiViewport capability if needed
Fixes invalid SPIR-V generated since 60d6416e5f8200d5340f75d2655a1478b1472330.
This commit is contained in:
parent
60d6416e5f
commit
a700e928ef
@ -5177,6 +5177,8 @@ namespace dxvk {
|
||||
|
||||
case DxbcSystemValue::ViewportId: {
|
||||
if (m_gs.builtinViewportId == 0) {
|
||||
m_module.enableCapability(spv::CapabilityMultiViewport);
|
||||
|
||||
m_gs.builtinViewportId = emitNewBuiltinVariable({
|
||||
{ DxbcScalarType::Uint32, 1, 0 },
|
||||
spv::StorageClassOutput },
|
||||
|
Loading…
x
Reference in New Issue
Block a user