Fix VkPipelineLayout use after free
authorSlawomir Cygan <slawomir.cygan@intel.com>
Wed, 18 Apr 2018 13:56:37 +0000 (15:56 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 25 May 2018 11:39:11 +0000 (07:39 -0400)
commit2060fc7fb1e62953bc9516540b63c131e25d2f0c
treecdaf157aa8ab6ea7a1743bd6de67e66553c145a7
parentac6f46a7c01cdae8347229600fc924af34c1fa3e
Fix VkPipelineLayout use after free

The test destroys pipeline layout, used to create the graphics pipeline,
before the command buffer using this pipeline is recorded.

This is invalid according to spec:
"A VkPipelineLayout object must not be destroyed while any
command buffer that uses it is in the recording state."

Components: Vulkan

VK-GL-CTS Issue: 1134

Affects:
dEQP-VK.draw.differing_interpolation.*

Change-Id: I2dd692cfb69afaf0b9d6e8d8a29b86b945b7eaba
external/vulkancts/modules/vulkan/draw/vktDrawDifferingInterpolationTests.cpp