[PATCH vkd3d v2 4/9] vkd3d-shader/hlsl: Abort on inconsistent types in fold_cast().

Francisco Casas fcasas at codeweavers.com
Tue Mar 29 15:12:08 CDT 2022


Signed-off-by: Francisco Casas <fcasas at codeweavers.com>


March 28, 2022 5:59 AM, "Giovanni Mascellani" <gmascellani at codeweavers.com> wrote:

> Signed-off-by: Giovanni Mascellani <gmascellani at codeweavers.com>
> --
> v2:
> * New
> ---
> 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;
> }
> }
> -- 
> 2.35.1



More information about the wine-devel mailing list