mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Factor out a vkd3d_shader_trace_text() helper and use it in vkd3d_spirv_dump() (Valgrind).
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
155812b124
commit
75a1a24d63
@@ -127,13 +127,7 @@ static void vkd3d_spirv_dump(const struct vkd3d_shader_code *spirv,
|
||||
|
||||
if (!vkd3d_spirv_binary_to_text(spirv, environment, options, &text))
|
||||
{
|
||||
const char *str, *current = text.code;
|
||||
while ((str = strchr(current, '\n')))
|
||||
{
|
||||
TRACE("%.*s\n", (int)(str - current), current);
|
||||
current = str + 1;
|
||||
}
|
||||
|
||||
vkd3d_shader_trace_text(text.code, text.size);
|
||||
vkd3d_shader_free_shader_code(&text);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user