Skip to content

Commit 4493232

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

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
@@ -411,6 +411,11 @@ struct SLayerContext
411411
deviceInfo.Extensions.push_back("SPV_KHR_linkonce_odr");
412412
}
413413

414+
// Required for devices supporting cl_khr_spirv_extended_debug_info.
415+
if (checkStringForExtension(deviceExtensions.c_str(), "cl_khr_spirv_extended_debug_info")) {
416+
deviceInfo.ExtendedInstructionSets.push_back("OpenCL.DebugInfo.100");
417+
}
418+
414419
// Required for devices supporting cl_khr_spirv_no_integer_wrap_decoration.
415420
if (checkStringForExtension(deviceExtensions.c_str(), "cl_khr_spirv_no_integer_wrap_decoration")) {
416421
deviceInfo.Extensions.push_back("SPV_KHR_no_integer_wrap_decoration");

0 commit comments

Comments
 (0)