tests/shader_runner: Handle the "rgba" probe format as an alias for "f32".

This commit is contained in:
Henri Verbeet
2025-10-06 14:18:04 +02:00
parent 6b7e4453d5
commit c522db8ce8
Notes: Henri Verbeet 2025-10-07 13:18:39 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1771
5 changed files with 9 additions and 24 deletions

View File

@@ -1441,7 +1441,7 @@ static void parse_test_directive(struct shader_runner *runner, const char *line)
check_readback_data_uint(rb, &box, v.x, 0);
}
}
else if (match_string(line, "f32", &line))
else if (match_string(line, "f32", &line) || match_string(line, "rgba", &line))
{
struct vec4 v;
@@ -1491,18 +1491,6 @@ static void parse_test_directive(struct shader_runner *runner, const char *line)
check_readback_data_float(rb, &rect, v.x, ulps);
}
}
else if (match_string(line, "rgba", &line))
{
struct vec4 v;
ret = sscanf(line, "( %f , %f , %f , %f ) %u", &v.x, &v.y, &v.z, &v.w, &ulps);
if (ret < 4)
fatal_error("Malformed probe arguments '%s'.\n", line);
if (ret < 5)
ulps = 0;
todo_if(runner->is_todo) bug_if(runner->is_bug)
check_readback_data_vec4(rb, &rect, &v, ulps);
}
else
{
fatal_error("Malformed probe arguments '%s'.\n", line);