Without this fix when updateDescriptorSet() is called in
BarrierTestInstance::iterate() debug builds for Vulkan CTS will
complain that resourceImgLayout is used without being initialized.
Affects:
dEQP-VK.ray_tracing_pipeline.barrier.*
Components: Vulkan
VK-GL-CTS issue: 2669
Change-Id: If320ac561cf278a9697ca33d302a1130db29fdb7
std::unique_ptr<ImageWithMemory> resourceImg;
Move<VkImageView> resourceImgView;
- VkImageLayout resourceImgLayout;
+ VkImageLayout resourceImgLayout = VK_IMAGE_LAYOUT_UNDEFINED;
const auto resourceImgSubresourceRange = makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, 1u, 0u, 1u);
std::unique_ptr<BufferWithMemory> stagingBuffer;
std::unique_ptr<BufferWithMemory> resourceBuffer;