vkd3d-shader/hlsl: Add switch_case destructors to the parser.

This commit is contained in:
Francisco Casas
2025-04-10 17:54:50 -04:00
committed by Henri Verbeet
parent ff5f9cbcb6
commit 77941b131e
Notes: Henri Verbeet 2025-04-16 16:52:17 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1460

View File

@@ -6734,6 +6734,7 @@ static void validate_uav_type(struct hlsl_ctx *ctx, enum hlsl_sampler_dim dim,
%type <list> variables_def_typed %type <list> variables_def_typed
%type <list> switch_cases %type <list> switch_cases
%destructor { destroy_parse_variable_defs($$); } type_specs variables_def variables_def_typed; %destructor { destroy_parse_variable_defs($$); } type_specs variables_def variables_def_typed;
%destructor { destroy_switch_cases($$); } switch_cases;
%token <name> VAR_IDENTIFIER %token <name> VAR_IDENTIFIER
%token <name> NEW_IDENTIFIER %token <name> NEW_IDENTIFIER
@@ -6830,6 +6831,7 @@ static void validate_uav_type(struct hlsl_ctx *ctx, enum hlsl_sampler_dim dim,
%type <state_block_index> state_block_index_opt %type <state_block_index> state_block_index_opt
%type <switch_case> switch_case %type <switch_case> switch_case
%destructor { hlsl_free_ir_switch_case($$); } <switch_case>
%type <type> base_optional %type <type> base_optional
%type <type> field_type %type <type> field_type