tests/gem_fenced_exec_thrash: Test with > max fences
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 11 Apr 2013 17:43:40 +0000 (20:43 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 11 Apr 2013 18:01:54 +0000 (20:01 +0200)
commit2fe3f76c255b08f4b462fc64be12d5e4ac7b37cd
treef65dfc097af40d586cd3995c5988295fcbcf1e3e
parenta7ca33b673ee90b0a93ffdb18449256798f67786
tests/gem_fenced_exec_thrash: Test with > max fences

Make sure the kernel returns EDEADLK when the number of fences is
exceeded for gen2-3. For gen4+ the test makes sure the kernel ignores
the EXEC_OBJECT_NEEDS_FENCE flag.

Note that I changed the code not to round the num_fences to an even
number. Not sure why that was there, and if there's a reason for it,
we need to add it back.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_fenced_exec_thrash.c