From 6822f1fe6ce467c2ce1d7d2f6be133a4210d3154 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Fri, 27 Sep 2024 14:15:31 +0200 Subject: [PATCH] vkd3d-shader/dxil: Trace the program when validation fails after parsing. --- libs/vkd3d-shader/dxil.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/vkd3d-shader/dxil.c b/libs/vkd3d-shader/dxil.c index c0c1592f..165ab222 100644 --- a/libs/vkd3d-shader/dxil.c +++ b/libs/vkd3d-shader/dxil.c @@ -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;