From 873043226c7018a62e44537c51c581c6975e5db2 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Tue, 13 May 2025 11:42:32 +0200 Subject: [PATCH] vkd3d-shader/dxil: Rewrite sm6_parser_init_ssa_value() in terms of the SM6 value. Instead of using the VSIR register. --- libs/vkd3d-shader/dxil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/vkd3d-shader/dxil.c b/libs/vkd3d-shader/dxil.c index 764cd25a1..5459c2c1f 100644 --- a/libs/vkd3d-shader/dxil.c +++ b/libs/vkd3d-shader/dxil.c @@ -2537,9 +2537,9 @@ static void sm6_parser_init_ssa_value(struct sm6_parser *sm6, struct sm6_value * { unsigned int id; - if (register_is_ssa(&value->reg) && value->reg.idx[0].offset) + if (value->value_type == VALUE_TYPE_SSA && value->u.ssa.id) { - id = value->reg.idx[0].offset; + id = value->u.ssa.id; TRACE("Using forward-allocated id %u.\n", id); } else