Giovanni Mascellani : vkd3d-shader/hlsl: Abort on inconsistent types in fold_cast().
Alexandre Julliard
julliard at winehq.org
Tue Apr 5 15:38:53 CDT 2022
Module: vkd3d
Branch: master
Commit: 58956922df44224b297b04364d02bbdff91ce2bd
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=58956922df44224b297b04364d02bbdff91ce2bd
Author: Giovanni Mascellani <gmascellani at codeweavers.com>
Date: Tue Apr 5 12:33:09 2022 +0200
vkd3d-shader/hlsl: Abort on inconsistent types in fold_cast().
Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Francisco Casas <fcasas 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_constant_ops.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/libs/vkd3d-shader/hlsl_constant_ops.c b/libs/vkd3d-shader/hlsl_constant_ops.c
index e4e60310..92f5a856 100644
--- a/libs/vkd3d-shader/hlsl_constant_ops.c
+++ b/libs/vkd3d-shader/hlsl_constant_ops.c
@@ -83,8 +83,7 @@ static bool fold_cast(struct hlsl_ctx *ctx, struct hlsl_ir_constant *dst, struct
break;
default:
- FIXME("Cast from %s to %s.\n", debug_hlsl_type(ctx, src->node.data_type),
- debug_hlsl_type(ctx, dst->node.data_type));
+ assert(0);
return false;
}
@@ -112,8 +111,7 @@ static bool fold_cast(struct hlsl_ctx *ctx, struct hlsl_ir_constant *dst, struct
break;
default:
- FIXME("Cast from %s to %s.\n", debug_hlsl_type(ctx, src->node.data_type),
- debug_hlsl_type(ctx, dst->node.data_type));
+ assert(0);
return false;
}
}
More information about the wine-cvs
mailing list