Validate that OML Sync Control syncs to vblank.

The existing tests don't demonstrate a variety of implementation bugs
that we've observed in current drivers, so this is our attempt to
demonstrate those bugs.

Version 2 fixes from Eric Anholt's review:
Added PIGLIT_WARN where appropriate
Wrapped lines to 80 characters
Removed comments describing checks
Removed glFlush()

Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Added timeouts to tests that use SwapBuffersMsc.

We've observed hangs on some drivers in these calls, which make it
harder to run the rest of the Piglit test suite.

Version 2 fixes from Eric Anholt's review:
Set timeouts to 5 seconds instead of trying to calculate them on the fly

Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Validate that SwapBuffers doesn't re-use an MSC.

This test checks that when swapbuffers is called multiple times without
WaitForSbc that the SBC is not incremented more often than the MSC.

Version 2 fixes from Eric Anholt's review:
Set timeout to 5 seconds instead of trying to calculate it on the fly
Wrapped lines to 80 characters
Removed glFlush()

Signed-off-by: Theo Hill <Theo0x48@gmail.com>
Signed-off-by: Jamey Sharp <jamey@minilop.net>