5 Commits

Author SHA1 Message Date
Daniel Vetter
df11a6f31d tests/gem_tiled_partial_pwrite_pread: convert to subtest infrastructure 2012-11-28 13:25:12 +01:00
Daniel Vetter
b0066d3659 tests/gem_tiled_partial_pwrite_pread: refactor subtests into functions 2012-11-28 13:22:39 +01:00
Daniel Vetter
628ad0c91b tests: some more tuning on the tiled partial pwrite/pread test
... 8 pages is just not enough to somewhat reliably get one page that
needs bit17 swizzling.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-29 20:22:45 +01:00
Daniel Vetter
dac239e2b6 tests/gem_tiled_partial_pread/write: fixes
Astonishing how dense I sometimes am ...
- increase the bo size so that we don't have any round-up to next tile
  size areas (which the 2d blit go over, but the 1d pread/pwrite calls
  will notice).
- correctly set tiling bits when copying back to a linear buffer.
- read back through a tiled bo to avoid messing with swizzling.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-29 18:32:02 +01:00
Daniel Vetter
f1d32d541d tests: add tiled partial pwrite/pread test
And indeed, this blows up.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-29 16:12:24 +01:00