Module: vkd3d
Branch: master
Commit: c2057c6849a7733f59e6885cab06635c0553bb55
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=c2057c6849a7733f59e6885…
Author: Zebediah Figura <zfigura(a)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(a)codeweavers.com>
Signed-off-by: Giovanni Mascellani <gmascellani(a)codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)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);
}
Module: vkd3d
Branch: master
Commit: 182707f1681d3878eef128e98ad2d50b2469f2f9
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=182707f1681d3878eef128e…
Author: Zebediah Figura <zfigura(a)codeweavers.com>
Date: Fri Oct 15 16:54:10 2021 -0500
vkd3d-shader/hlsl: Factor out an hlsl_block structure.
This doesn't hold anything other than a list, nor do I have any immediate plans
for it to hold anything other than a list, but I'm adding it for some degree of
clarity. Passing around untyped list pointers is not my favourite hobby.
Signed-off-by: Zebediah Figura <zfigura(a)codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com>
Signed-off-by: Giovanni Mascellani <gmascellani(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
libs/vkd3d-shader/hlsl.c | 24 ++++++++++++------------
libs/vkd3d-shader/hlsl.h | 13 +++++++++----
libs/vkd3d-shader/hlsl.y | 16 ++++++++--------
libs/vkd3d-shader/hlsl_codegen.c | 34 +++++++++++++++++-----------------
libs/vkd3d-shader/hlsl_sm1.c | 2 +-
libs/vkd3d-shader/hlsl_sm4.c | 2 +-
6 files changed, 48 insertions(+), 43 deletions(-)
Diff: https://source.winehq.org/git/vkd3d.git/?a=commitdiff;h=182707f1681d3878eef…