From fd1f74f44d0e0c4799817dd44389a88b1b110c08 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Fri, 2 May 2025 11:14:27 +0200 Subject: [PATCH] vkd3d-shader/dxil: Generate INVALID values in sm6_parser_emit_unhandled(). --- libs/vkd3d-shader/dxil.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libs/vkd3d-shader/dxil.c b/libs/vkd3d-shader/dxil.c index c35b5a902..da872afc2 100644 --- a/libs/vkd3d-shader/dxil.c +++ b/libs/vkd3d-shader/dxil.c @@ -6605,16 +6605,13 @@ static bool sm6_parser_validate_dx_op(struct sm6_parser *sm6, enum dx_intrinsic_ static void sm6_parser_emit_unhandled(struct sm6_parser *sm6, struct vkd3d_shader_instruction *ins, struct sm6_value *dst) { - const struct sm6_type *type; - ins->opcode = VKD3DSIH_NOP; if (!dst->type) return; - type = sm6_type_get_scalar_type(dst->type, 0); - vsir_register_init(&dst->reg, VKD3DSPR_UNDEF, vkd3d_data_type_from_sm6_type(type), 0); - /* dst->is_undefined is not set here because it flags only explicitly undefined values. */ + dst->value_type = VALUE_TYPE_INVALID; + sm6_register_from_value(&dst->reg, dst); } static void sm6_parser_decode_dx_op(struct sm6_parser *sm6, enum dx_intrinsic_opcode op,