1
0
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:
Philip Rebohle 2018-03-27 01:41:06 +02:00
parent 60d6416e5f
commit a700e928ef
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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 },