tests/gem_seqno_wrap: dont sync when crossing half of seqno space
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 13 Dec 2012 10:43:35 +0000 (12:43 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 13 Dec 2012 11:52:26 +0000 (12:52 +0100)
commita2452d68a062e3fda2ac1c3bc92b8fd083a0cf68
treeb021ece357df8584ef08859935eef61b08d1db84
parent7ab837b21473a9e7bf5565a8fa862349d37bc597
tests/gem_seqno_wrap: dont sync when crossing half of seqno space

For seqno comparison to work they have to be less than UINT32_MAX/2
apart. So when crossing the half way of seqno space, be careful not
to sync anything as this causes gpu hangs. Do real test with
syncing only when we are about to wrap.

v2: Don't spam if no rendercopy was found, only warn once
tests/gem_seqno_wrap.c