tests/shader_runner: Allow controlling which shader models to run via command line.

Adds new flags --sm-min and --sm-max. They each take a shader model
identifier, with the same syntax as in the test harness. If either is
present, then it will only run tests within the (inclusive) range.
Omitting one allows anything as the min/max.
This commit is contained in:
Petrichor Park
2024-06-25 12:56:51 -05:00
committed by Henri Verbeet
parent 2f260a344e
commit f05386e006
Notes: Henri Verbeet 2025-03-10 15:23:30 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Giovanni Mascellani (@giomasce)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1407
2 changed files with 74 additions and 14 deletions

View File

@@ -542,7 +542,6 @@ struct test_options
unsigned int adapter_idx;
bool enable_debug_layer;
bool enable_gpu_based_validation;
const char *filename;
};
extern struct test_options test_options;
@@ -561,8 +560,6 @@ static inline void parse_args(int argc, char **argv)
test_options.enable_debug_layer = true;
else if (!strcmp(argv[i], "--gbv"))
test_options.enable_gpu_based_validation = true;
else if (argv[i][0] != '-')
test_options.filename = argv[i];
}
}