mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Replace "parse_status" with a boolean variable.
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
8313225cc6
commit
193218f54e
@@ -2006,7 +2006,7 @@ param_list:
|
||||
if (!add_func_parameter(ctx, $$, &$1, @1))
|
||||
{
|
||||
ERR("Error adding function parameter %s.\n", $1.name);
|
||||
set_parse_status(&ctx->status, PARSE_ERR);
|
||||
ctx->failed = true;
|
||||
YYABORT;
|
||||
}
|
||||
}
|
||||
@@ -3111,7 +3111,7 @@ int hlsl_parser_compile(struct hlsl_ctx *ctx, const char *entrypoint)
|
||||
|
||||
yyparse(ctx->scanner, ctx);
|
||||
|
||||
if (ctx->status == PARSE_ERR)
|
||||
if (ctx->failed)
|
||||
return VKD3D_ERROR_INVALID_SHADER;
|
||||
|
||||
if (!(entry_func = get_func_entry(ctx, entrypoint)))
|
||||
@@ -3140,7 +3140,7 @@ int hlsl_parser_compile(struct hlsl_ctx *ctx, const char *entrypoint)
|
||||
|
||||
compute_liveness(ctx, entry_func);
|
||||
|
||||
if (ctx->status == PARSE_ERR)
|
||||
if (ctx->failed)
|
||||
return VKD3D_ERROR_INVALID_SHADER;
|
||||
return VKD3D_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user