Fix for crash in createDeviceWithExtensions
authorMarcin Kańtoch <marcin.kantoch@amd.com>
Mon, 29 May 2017 10:23:45 +0000 (12:23 +0200)
committerPyry Haulos <phaulos@google.com>
Thu, 1 Jun 2017 23:52:28 +0000 (19:52 -0400)
commit6a51980397447d1f726e71d9126e47f84dc80a6f
tree1d3717b5c0771f94ef8c02d61cd7d7696a1d524b
parenta56c487e346192c74fb17f719aad18a71d667478
Fix for crash in createDeviceWithExtensions

createDeviceWithExtensions function is crashing if extensions vector
does not contain any elements. This simple fix prevents the crash
from happening.

Affects: dEQP-VK.spirv_assembly.*

Components: Vulkan

Change-Id: If4e5149df8d00b25b6ee97a235757d44dccd60d1
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmUtils.cpp