vkd3d-shader: Use hlsl_report_message() to report use of reserved keywords.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-02-12 10:48:52 -06:00 committed by Alexandre Julliard
parent c7d4acaf4b
commit e3e0c26475

View File

@ -65,8 +65,8 @@ ANY (.)
{RESERVED4} { {RESERVED4} {
struct hlsl_ctx *ctx = yyget_extra(yyscanner); struct hlsl_ctx *ctx = yyget_extra(yyscanner);
hlsl_message("Line %u: Reserved keyword \"%s\" used.\n", ctx->line_no, yytext); hlsl_report_message(ctx, *yylloc, HLSL_LEVEL_ERROR,
set_parse_status(&ctx->status, PARSE_ERR); "Reserved keyword \"%s\" used.\n", yytext);
} }
BlendState {return KW_BLENDSTATE; } BlendState {return KW_BLENDSTATE; }