Signed-off-by: Giovanni Mascellani gmascellani@codeweavers.com
Il 15/10/21 23:54, Zebediah Figura ha scritto:
The return variable was already added to the extern_vars list and marked as an output semantic by the append_output_var_copy() call above, so the preceding loop will take care of setting the last_read field.
Signed-off-by: Zebediah Figura zfigura@codeweavers.com
libs/vkd3d-shader/hlsl_codegen.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/libs/vkd3d-shader/hlsl_codegen.c b/libs/vkd3d-shader/hlsl_codegen.c index a48777645..df10ca272 100644 --- a/libs/vkd3d-shader/hlsl_codegen.c +++ b/libs/vkd3d-shader/hlsl_codegen.c @@ -690,9 +690,6 @@ static void compute_liveness(struct hlsl_ctx *ctx, struct hlsl_ir_function_decl var->last_read = UINT_MAX; }
- if (entry_func->return_var)
entry_func->return_var->last_read = UINT_MAX;
}compute_liveness_recurse(&entry_func->body, 0, 0);