mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Avoid using debugging utilities in debug_hlsl_type().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
61c3d802ed
commit
b57ad006c2
@@ -254,8 +254,12 @@ static struct hlsl_ir_node *add_implicit_conversion(struct hlsl_ctx *ctx, struct
|
||||
|
||||
if (!implicit_compatible_data_types(src_type, dst_type))
|
||||
{
|
||||
hlsl_error(ctx, *loc, "can't implicitly convert %s to %s",
|
||||
debug_hlsl_type(src_type), debug_hlsl_type(dst_type));
|
||||
char *src_string = hlsl_type_to_string(src_type), *dst_string = hlsl_type_to_string(dst_type);
|
||||
|
||||
if (src_string && dst_string)
|
||||
hlsl_error(ctx, *loc, "Can't implicitly convert from %s to %s.", src_string, dst_string);
|
||||
vkd3d_free(src_string);
|
||||
vkd3d_free(dst_string);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -2728,8 +2732,12 @@ unary_expr:
|
||||
|
||||
if (!compatible_data_types(src_type, dst_type))
|
||||
{
|
||||
hlsl_error(ctx, @3, "can't cast from %s to %s",
|
||||
debug_hlsl_type(src_type), debug_hlsl_type(dst_type));
|
||||
char *src_string = hlsl_type_to_string(src_type), *dst_string = hlsl_type_to_string(dst_type);
|
||||
|
||||
if (src_string && dst_string)
|
||||
hlsl_error(ctx, @3, "Can't cast from %s to %s.", src_string, dst_string);
|
||||
vkd3d_free(src_string);
|
||||
vkd3d_free(dst_string);
|
||||
YYABORT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user