tests/shader_runner: Print "(none)" for an empty caps list in trace_shader_caps().

Like we do in trace_format_cap().
This commit is contained in:
Henri Verbeet 2024-10-31 13:53:21 +01:00
parent ad2208b726
commit b5f1979475
Notes: Henri Verbeet 2024-10-31 16:58:27 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1205

View File

@ -1723,6 +1723,7 @@ static void trace_tags(const struct shader_runner_caps *caps)
static void trace_shader_caps(const bool *caps)
{
bool show_none = true;
char buffer[80], *p;
size_t rem;
int rc;
@ -1751,7 +1752,10 @@ static void trace_shader_caps(const bool *caps)
}
p += rc;
rem -= rc;
show_none = false;
}
if (show_none)
snprintf(p, rem, " (none)");
trace("%s.\n", buffer);
}