[Piglit] [PATCH] The initial value for interval should be 0 to get the correct value.
Jian Zhao
jian.j.zhao at intel.com
Wed Jul 13 20:13:56 PDT 2011
There is some modification to the test before and now we need to adjust the
intial value of the interval. And there is some comments updated.
Signed-off-by: Jian Zhao <jian.j.zhao at intel.com>
CC: Jesse Barnes <jbarnes at virtuousgeek.org>
---
tests/glx/glx-swap-event.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/glx/glx-swap-event.c b/tests/glx/glx-swap-event.c
index c2ef60e..bc3f3f3 100644
--- a/tests/glx/glx-swap-event.c
+++ b/tests/glx/glx-swap-event.c
@@ -58,16 +58,16 @@ PFNGLXGETSWAPINTERVALMESAPROC pglXGetSwapIntervalMESA;
static GLboolean fullscreen = GL_FALSE; /* Create a fullscreen window */
static GLboolean verbose = GL_FALSE; /* Disable verbose. */
-static GLboolean Automatic = GL_FALSE; /* Disable verbose. */
-static GLboolean test_events = GL_FALSE; /* Disable verbose. */
-static GLboolean interval_diff = GL_FALSE; /* Disable verbose. */
-static GLboolean async = GL_FALSE; /* Disable verbose. */
+static GLboolean Automatic = GL_FALSE; /* Test automatically. */
+static GLboolean test_events = GL_FALSE; /* Test event's generation. */
+static GLboolean interval_diff = GL_FALSE; /* Test interval can be set. */
+static GLboolean async = GL_FALSE; /* Test asynchronize. */
int event_base, Glx_event, count=0, swap_count=0, event_count=0;
static int Intel_swap_event=0;
int event_count_total=0, frames_total=0, message_count=0;
static double time_call=0.0, time_fin=0.0, time_val=0.0;
double swap_start[STACK_L],swap_returned[STACK_L];
-int interval=1;
+int interval=0;
char * swap_event_type=NULL;
/**
* Determine whether or not a GLX extension is supported.
--
1.6.0.6
More information about the Piglit
mailing list