vkd3d-shader/hlsl: Move hlsl_ir_function_decl->extern_vars to a local variable.

This commit is contained in:
Anna (navi) Figueiredo Gomes
2025-07-09 01:21:39 +02:00
committed by Henri Verbeet
parent db80f09c7a
commit a7266284ee
Notes: Henri Verbeet 2025-07-23 17:30:00 +02:00
Approved-by: Francisco Casas (@fcasas)
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1471
3 changed files with 87 additions and 93 deletions

View File

@@ -2998,7 +2998,6 @@ struct hlsl_ir_function_decl *hlsl_new_func_decl(struct hlsl_ctx *ctx,
decl->return_type = return_type;
decl->parameters = *parameters;
decl->loc = *loc;
list_init(&decl->extern_vars);
if (!hlsl_types_are_equal(return_type, ctx->builtin_types.Void))
{

View File

@@ -645,12 +645,6 @@ struct hlsl_ir_function_decl
* executed. Needed to deal with return statements in non-uniform control
* flow, since some backends can't handle them. */
struct hlsl_ir_var *early_return_var;
/* List of all the extern semantic variables; linked by the
* hlsl_ir_var.extern_entry fields. This exists as a convenience because
* it is often necessary to iterate all extern variables and these can be
* declared in as function parameters, or as the function return value. */
struct list extern_vars;
};
struct hlsl_ir_call

File diff suppressed because it is too large Load Diff