Skip to content

Commit 772a3c3

Browse files
committed
add a missing SPIR-V queries check for the extended debug info extension
1 parent 2f396eb commit 772a3c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

layers/12_spirvqueriesemu/emulate.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,11 @@ struct SLayerContext
406406
deviceInfo.Capabilities.push_back(spv::CapabilityImageMipmap);
407407
}
408408

409+
// Required for devices supporting cl_khr_spirv_extended_debug_info.
410+
if (checkStringForExtension(deviceExtensions.c_str(), "cl_khr_spirv_extended_debug_info")) {
411+
deviceInfo.ExtendedInstructionSets.push_back("OpenCL.DebugInfo.100");
412+
}
413+
409414
// Required for devices supporting cl_khr_spirv_linkonce_odr.
410415
if (checkStringForExtension(deviceExtensions.c_str(), "cl_khr_spirv_linkonce_odr")) {
411416
deviceInfo.Extensions.push_back("SPV_KHR_linkonce_odr");

0 commit comments

Comments
 (0)