renderer_vulkan: ignore viewport stores on non-supporting drivers

This commit is contained in:
Liam
2023-11-19 11:27:12 -05:00
parent 787552f832
commit 473caaff5b
5 changed files with 11 additions and 1 deletions

View File

@ -407,7 +407,7 @@ void SetupCapabilities(const Profile& profile, const Info& info, EmitContext& ct
}
ctx.AddCapability(spv::Capability::DemoteToHelperInvocation);
}
if (info.stores[IR::Attribute::ViewportIndex]) {
if (info.stores[IR::Attribute::ViewportIndex] && profile.support_multi_viewport) {
ctx.AddCapability(spv::Capability::MultiViewport);
}
if (info.stores[IR::Attribute::ViewportMask] && profile.support_viewport_mask) {