mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 22:02:57 +00:00
lib: remove handled option arguments from argv
Remove options from argv that have been handled by getopt to allow additional non-option parameters to be processed in the test application. This fixes issues when using options such as --debug with tests that accept additional non-option parameters. Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
+1
-1
@@ -854,7 +854,7 @@ int main(int argc, char **argv)
|
||||
options.tiles_per_buf = options.scratch_buf_size / TILE_BYTES(options.tile_size);
|
||||
options.check_render_cpyfn = 0;
|
||||
|
||||
igt_simple_init_parse_opts(argc, argv,"ds:g:c:t:rbuxmo:fp:",
|
||||
igt_simple_init_parse_opts(&argc, argv,"ds:g:c:t:rbuxmo:fp:",
|
||||
long_options, NULL, parse_options);
|
||||
|
||||
drm_fd = drm_open_any();
|
||||
|
||||
Reference in New Issue
Block a user