[Intel-gfx] [PATCH igt v4 05/13] igt/gem_exec_parse: make global vars local to main()
Robert Bragg
robert at sixbynine.org
Mon Nov 14 20:51:14 UTC 2016
Signed-off-by: Robert Bragg <robert at sixbynine.org>
---
tests/gem_exec_parse.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/gem_exec_parse.c b/tests/gem_exec_parse.c
index dcf39a2..ebcd092 100644
--- a/tests/gem_exec_parse.c
+++ b/tests/gem_exec_parse.c
@@ -375,11 +375,11 @@ static void hsw_load_register_reg(void)
close(fd);
}
-static uint32_t handle;
-static int fd;
-
igt_main
{
+ uint32_t handle;
+ int fd;
+
igt_fixture {
int parser_version = 0;
drm_i915_getparam_t gp;
--
2.10.1
More information about the Intel-gfx
mailing list