diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-06-29 16:25:57 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-07-04 19:10:00 +0300 |
commit | aaa23eff21a148809beb22e928f3cd72530ea3de (patch) | |
tree | e11da7bd690af98b5dd6460661e8df9c7df33acc /tests/perf.c | |
parent | 20f4aee0fbc5f5a0b375a512d340e4c453b67de9 (diff) |
tests/gem_render_copy: Use a more elaborate pattern of pixels
Checking whether we can copy solid rectangles isn't particularly
robust. Eg. errors in texture coordinates/interpolation wouldn't
necessarily show up at all because all texels are identical.
Let's switch to a more elaborate pattern that should catch such
errors. And we'll also change the test to not start the copy
from position 0,0 in the texture.
We'll generate the reference image (against which the rendercopy
results are compared) by peforming an identical copy using the
cpu.
v2: Use gtt mmap instead of pread/pwrite (Chris)
Offset the dst coordinates by -1,-1 to make sure
the copy doesn't go past the intended region
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/perf.c')
0 files changed, 0 insertions, 0 deletions