@@ -129,9 +129,12 @@ fn main() {
129129 } ;
130130
131131 let extended_instruction_sets = [
132- ( "GLSL.std.450" , "GLOp" , "https://www.khronos.org/registry/spir-v/specs/unified1/GLSL.std.450.html" ) ,
133- ( "OpenCL.std.100" , "CLOp" , "https://www.khronos.org/registry/spir-v/specs/unified1/OpenCL.ExtendedInstructionSet.100.html" ) ,
134- ( "NonSemantic.DebugPrintF" , "DebugPrintFOp" , "https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/master/docs/debug_printf.md" ) ,
132+ ( "GLSL.std.450" , "GLOp" , "https://registry.khronos.org/SPIR-V/specs/unified1/GLSL.std.450.html" ) ,
133+ ( "OpenCL.std.100" , "CLOp" , "https://registry.khronos.org/SPIR-V/specs/unified1/OpenCL.ExtendedInstructionSet.100.html" ) ,
134+ ( "OpenCL.debuginfo.100" , "CLDebugInfoOp" , "https://registry.khronos.org/SPIR-V/specs/unified1/OpenCL.DebugInfo.100.html" ) ,
135+ ( "NonSemantic.DebugPrintF" , "DebugPrintFOp" , "https://github.khronos.org/SPIRV-Registry/nonsemantic/NonSemantic.DebugPrintf.html" ) ,
136+ ( "NonSemantic.DebugBreak" , "DebugBreakOp" , "https://github.khronos.org/SPIRV-Registry/nonsemantic/NonSemantic.DebugBreak.html" ) ,
137+ ( "DebugInfo" , "DebugInfoOp" , "https://registry.khronos.org/SPIR-V/specs/unified1/DebugInfo.html" ) ,
135138 ] ;
136139 let extended_instruction_sets = extended_instruction_sets. map ( |( ext, op, url) | {
137140 let grammar: structs:: ExtInstSetGrammar = serde_json:: from_str (
@@ -172,16 +175,16 @@ fn main() {
172175 table:: gen_grammar_inst_table_operand_kinds ( & grammar) ,
173176 ) ;
174177 // Extended instruction sets
175- for ( ext, _ , _, grammar) in extended_instruction_sets {
178+ for ( ext, spirv_op , _, grammar) in extended_instruction_sets {
176179 write_formatted (
177180 & autogen_src_dir. join ( format ! (
178181 "../rspirv/grammar/autogen_{}.rs" ,
179182 ext. replace( "." , "_" ) . to_lowercase( )
180183 ) ) ,
181184 table:: gen_instruction_table (
182185 & grammar. instructions ,
186+ Some ( spirv_op) ,
183187 & format ! ( "{}_INSTRUCTION_TABLE" , ext. replace( "." , "_" ) . to_uppercase( ) ) ,
184- true ,
185188 ) ,
186189 ) ;
187190 }
0 commit comments