From c18d1b562992968b9af33007af9348be8d0f0ce7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 11 Feb 2025 15:10:50 +0900 Subject: [PATCH] [qfcc] Handle aliases and provisional in spirv grammar They're currently ignored, but it seems the recent spec update added these fields. --- tools/qfcc/source/spirv_grammar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/qfcc/source/spirv_grammar.c b/tools/qfcc/source/spirv_grammar.c index 763e5f62f..a67174531 100644 --- a/tools/qfcc/source/spirv_grammar.c +++ b/tools/qfcc/source/spirv_grammar.c @@ -270,6 +270,8 @@ static plfield_t spirv_enumerant_fields[] = { {"parameters", 0, QFArray, parse_array, &parse_parameter_data}, {"version", offsetof (spirv_enumerant_t, version), QFString, parse_string, &parse_string_array}, {"lastVersion", offsetof (spirv_enumerant_t, lastVersion), QFString, parse_string, &parse_string_array}, + {"aliases", 0, QFArray, parse_ignore, nullptr}, + {"provisional", 0, QFBool, parse_ignore, nullptr}, { } }; @@ -336,6 +338,8 @@ static plfield_t spirv_instruction_fields[] = { {"version", offsetof (spirv_instruction_t, version), QFString, parse_string, &parse_string_array}, {"lastVersion", offsetof (spirv_instruction_t, lastVersion), QFString, parse_string, &parse_string_array}, {"class", 0, QFString, parse_ignore, nullptr}, + {"aliases", 0, QFArray, parse_ignore, nullptr}, + {"provisional", 0, QFBool, parse_ignore, nullptr}, { } };