tests/gem_tiling_max_stride: Add a test for max fence stride
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 9 Apr 2013 14:45:37 +0000 (17:45 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 9 Apr 2013 18:21:13 +0000 (20:21 +0200)
commit918e763e2dd474a58c43c145c10e7f3aa4ec9a39
treedfcd6b23264dd92b2afaf368fe9a09670822194f
parent1d1f68316f420d8e174d3f16655f6be1549cd74c
tests/gem_tiling_max_stride: Add a test for max fence stride

gem_tiling_max_stride writes a data pattern to an X-tiled buffer using
the maximum supported stride, reads the data back as linear, and
verifies that the data didn't get scrambled on the way.

The test also checks that some invalid stride values are rejected
properly.

v2: Check invalid strides
v3: Check invalid stride with Y-tiling
    Include a few more invalid stride values
    Fix gen3 X-tile size
v4: A few more invalid strides :)
    Drop the useless memset()

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/Makefile.am
tests/gem_tiling_max_stride.c [new file with mode: 0644]