Zebediah Figura : vkd3d-shader/hlsl: Don't explicitly mark the return variable as read in compute_liveness().

Alexandre Julliard julliard at winehq.org
Mon Nov 1 16:33:19 CDT 2021


Module: vkd3d
Branch: master
Commit: c2057c6849a7733f59e6885cab06635c0553bb55
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=c2057c6849a7733f59e6885cab06635c0553bb55

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Fri Oct 15 16:54:11 2021 -0500

vkd3d-shader/hlsl: Don't explicitly mark the return variable as read in compute_liveness().

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 at codeweavers.com>
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 a487776..df10ca2 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);
 }
 




More information about the wine-cvs mailing list