vkd3d-shader/ir: Emit an ERR() on validation errors.

This commit is contained in:
Giovanni Mascellani 2023-11-06 13:15:23 +01:00 committed by Alexandre Julliard
parent 0ef25ad137
commit ca3f594ae3
Notes: Alexandre Julliard 2023-11-07 22:40:09 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/444

View File

@ -1492,6 +1492,7 @@ static void VKD3D_PRINTF_FUNC(3, 4) validator_error(struct validation_context *c
va_end(args);
vkd3d_shader_parser_error(ctx->parser, error, "instruction %zu: %s", ctx->instruction_idx + 1, buf.buffer);
ERR("VSIR validation error: instruction %zu: %s\n", ctx->instruction_idx + 1, buf.buffer);
vkd3d_string_buffer_cleanup(&buf);
}