mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/ir: Emit a warning instead of an error on validation failures.
This commit is contained in:
parent
03d76f653b
commit
829e6f5cd0
Notes:
Henri Verbeet
2024-09-05 16:38:53 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1043
@ -5731,14 +5731,14 @@ static void VKD3D_PRINTF_FUNC(3, 4) validator_error(struct validation_context *c
|
|||||||
if (ctx->invalid_instruction_idx)
|
if (ctx->invalid_instruction_idx)
|
||||||
{
|
{
|
||||||
vkd3d_shader_error(ctx->message_context, &ctx->null_location, error, "%s", buf.buffer);
|
vkd3d_shader_error(ctx->message_context, &ctx->null_location, error, "%s", buf.buffer);
|
||||||
ERR("VSIR validation error: %s\n", buf.buffer);
|
WARN("VSIR validation error: %s\n", buf.buffer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const struct vkd3d_shader_instruction *ins = &ctx->program->instructions.elements[ctx->instruction_idx];
|
const struct vkd3d_shader_instruction *ins = &ctx->program->instructions.elements[ctx->instruction_idx];
|
||||||
vkd3d_shader_error(ctx->message_context, &ins->location, error,
|
vkd3d_shader_error(ctx->message_context, &ins->location, error,
|
||||||
"instruction %zu: %s", ctx->instruction_idx + 1, buf.buffer);
|
"instruction %zu: %s", ctx->instruction_idx + 1, buf.buffer);
|
||||||
ERR("VSIR validation error: instruction %zu: %s\n", ctx->instruction_idx + 1, buf.buffer);
|
WARN("VSIR validation error: instruction %zu: %s\n", ctx->instruction_idx + 1, buf.buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
vkd3d_string_buffer_cleanup(&buf);
|
vkd3d_string_buffer_cleanup(&buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user