Skip to content

Commit 404f81a

Browse files
authored
Update vk_caps_utils.cpp
1 parent 9bd28c9 commit 404f81a

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/libANGLE/renderer/vulkan/vk_caps_utils.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,10 +1449,6 @@ void Renderer::ensureCapsInitialized() const
14491449
mNativePLSOptions.type == ShPixelLocalStorageType::FramebufferFetch;
14501450
if (hasMRTFramebufferFetch)
14511451
{
1452-
mNativeCaps.maxColorAttachments = std::min<uint32_t>(
1453-
mNativeCaps.maxColorAttachments, limitsVk.maxPerStageDescriptorInputAttachments);
1454-
mNativeCaps.maxDrawBuffers = std::min<uint32_t>(
1455-
mNativeCaps.maxDrawBuffers, limitsVk.maxPerStageDescriptorInputAttachments);
14561452

14571453
// Make sure no more than the allowed input attachments bindings are used by descriptor set
14581454
// layouts. This number matches the number of color attachments because of framebuffer
@@ -1488,10 +1484,6 @@ void Renderer::ensureCapsInitialized() const
14881484
maxDrawBuffersWithDepthStencilInput >= 4)
14891485
{
14901486
mNativeExtensions.shaderFramebufferFetchDepthStencilARM = true;
1491-
mNativeCaps.maxColorAttachments = maxColorAttachmentsWithDepthStencilInput;
1492-
mNativeCaps.maxDrawBuffers = maxDrawBuffersWithDepthStencilInput;
1493-
mMaxColorInputAttachmentCount =
1494-
std::min<uint32_t>(mMaxColorInputAttachmentCount, mNativeCaps.maxColorAttachments);
14951487
}
14961488
}
14971489

0 commit comments

Comments
 (0)