[Piglit] New piglit test case for swap event

Shuang He shuang.he at intel.com
Tue Dec 28 19:42:09 PST 2010


On 2010-12-20 14:15, Jian Zhao wrote:
>
> static void
> query_swap_event(Display *dpy)
> {
>
>      if ( ! is_glx_extension_supported(dpy, "GLX_INTEL_swap_event")) {
>          printf("The GLX_INTEL_swap_event is not supported in current version.\n");
>          exit(1);
>      } else {
>          printf("The GLX_INTEL_swap_event is supported in current version.\n");
>      }

This should report PIGLIT_SKIP

>      if (interval_diff) {
>          if ( ! is_glx_extension_supported(dpy, "GLX_MESA_swap_control")) {
>              printf("GLX_MESA_swap_control was not supported by the driver.\n");
>              exit(1);
>          } else {
>              pglXGetSwapIntervalMESA = (PFNGLXGETSWAPINTERVALMESAPROC)
>              glXGetProcAddressARB((const GLubyte *) "glXGetSwapIntervalMESA");
>              pglXSwapIntervalMESA = (PFNGLXSWAPINTERVALMESAPROC)
>              glXGetProcAddressARB((const GLubyte *) "glXSwapIntervalMESA");
>          }
>      }
> }

There's still places that need to report PIGLIT_FAILURE

Thanks
     --Shuang



More information about the Piglit mailing list