Fix number of pipelines/framebuffers/renderpasses created in dynamic offset tests
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 3 Apr 2020 08:10:29 +0000 (10:10 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 16 Apr 2020 12:18:42 +0000 (08:18 -0400)
commit3e354d8a8d98e4ed9983d610a84909cff972608d
tree4fcdbf08bcbe1fe830be7422668864a4e3b35f7c
parent551a647dd822ed9e0893a3f073cd38b24915fabf
Fix number of pipelines/framebuffers/renderpasses created in dynamic offset tests

Tests need a pipeline/framebuffer/renderpass per command buffer to be
executed. For the single command buffer case, we were creating an extra
one that is unused.

However, it will produce crashes if we ever add tests with more than
two command buffers, as it is using the command buffer index to get
the respective pipeline/framebuffer/renderpass element to bind.

Components: Vulkan
VK-GL-CTS issue: 2293

Affected tests:

  dEQP-VK.pipeline.dynamic_offset.*

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Change-Id: Ie1b2fb80f4fdff56c9e7879c9b1382f61c4ee622
external/vulkancts/modules/vulkan/pipeline/vktPipelineDynamicOffsetTests.cpp