mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 00:16:18 +00:00
tests/vgem_fb_test: Fix igt_simple_init_parse_opts new API
This commit is contained in:
parent
2eebb2b861
commit
e763f9bc8b
@ -382,7 +382,7 @@ void draw(struct context *ctx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int opt_handler(int opt, int opt_index)
|
static int opt_handler(int opt, int opt_index, void *data)
|
||||||
{
|
{
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'd':
|
case 'd':
|
||||||
@ -405,7 +405,7 @@ int main(int argc, char **argv)
|
|||||||
int drm_prime_fd;
|
int drm_prime_fd;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
igt_simple_init_parse_opts(&argc, argv, "d:p", NULL, NULL, opt_handler);
|
igt_simple_init_parse_opts(&argc, argv, "d:p", NULL, NULL, opt_handler, NULL);
|
||||||
igt_skip_on_simulation();
|
igt_skip_on_simulation();
|
||||||
|
|
||||||
do_fixes();
|
do_fixes();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user