Clear all Views of Framebuffer Attachment to reference background color
authorMateusz Zych <Mateusz.Zych@amd.com>
Sat, 14 Apr 2018 00:11:14 +0000 (20:11 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 11 May 2018 11:03:05 +0000 (07:03 -0400)
commit3272924fcac1a683932c789842e1e89c68c590d3
treee265e0a46cf855afb9629a16300caf563fda8472
parent1f1f927dd9c867b43bbebc606e883eee8d65342b
Clear all Views of Framebuffer Attachment to reference background color

The VK_KHR_multiview spec defines that during implicit clear (LOAD_OP_CLEAR)
all Active Views of Framebuffer attachment are cleared.
ViewMask defines which Views are active during particular subpass,
therefore a View is considered active during RenderPass
if it was active in any subpass of that RenderPass.

Without explicit clear of inactive Views their content will be undefined,
making test results unreliable.

This change removes MultiViewReadbackTestInstance::beforeDraw() and
relies on MultiViewRenderTestInstance::beforeDraw()
to clear all Views (array layers) of framebuffer attachment
by calling vkCmdClearColorImage().

Components: Vulkan

VK-GL-CTS Issue: 1085

Affects:
    dEQP-VK.multiview.readback*

Change-Id: I70d8b1c48cb157df2518b7d241a302c54d5842f3
external/vulkancts/modules/vulkan/multiview/vktMultiViewRenderTests.cpp