projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
472e8a7
)
flip_test: reset the state for each test run
author
Imre Deak
<imre.deak@intel.com>
Tue, 16 Oct 2012 14:34:37 +0000
(17:34 +0300)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 16 Oct 2012 14:52:14 +0000
(16:52 +0200)
Each test run needs a clean state.
Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/flip_test.c
patch
|
blob
|
history
diff --git
a/tests/flip_test.c
b/tests/flip_test.c
index
d018c50
..
b338448
100644
(file)
--- a/
tests/flip_test.c
+++ b/
tests/flip_test.c
@@
-546,11
+546,13
@@
static int run_test(int duration, int flags)
/* Find any connected displays */
for (c = 0; c < resources->count_connectors; c++) {
- memset(&o, 0, sizeof(o));
- o.id = resources->connectors[c];
- o.flags = flags;
- for (i = 0; i < resources->count_crtcs; i++)
+ for (i = 0; i < resources->count_crtcs; i++) {
+ memset(&o, 0, sizeof(o));
+ o.id = resources->connectors[c];
+ o.flags = flags;
+
flip_mode(&o, resources->crtcs[i], duration);
+ }
}
drmModeFreeResources(resources);