vkd3d-shader/dxil: Trace the program when validation fails after parsing.

This commit is contained in:
Giovanni Mascellani 2024-09-27 14:15:31 +02:00 committed by Henri Verbeet
parent 5f20103518
commit 6822f1fe6c
Notes: Henri Verbeet 2024-09-30 21:06:59 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1130

View File

@ -10588,6 +10588,11 @@ int dxil_parse(const struct vkd3d_shader_compile_info *compile_info, uint64_t co
if ((ret = vkd3d_shader_parser_validate(&sm6.p, config_flags)) < 0)
{
WARN("Failed to validate shader after parsing, ret %d.\n", ret);
if (TRACE_ON())
vkd3d_shader_trace(program);
sm6_parser_cleanup(&sm6);
vsir_program_cleanup(program);
return ret;