diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-02-29 17:36:04 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-02-29 18:32:02 +0100 |
commit | dac239e2b694f5f187ae0af9aeb339e3b57a51a1 (patch) | |
tree | 573cbe647c473810c171aa77d122998c11260af0 /tests/gem_cs_prefetch.c | |
parent | f1d32d541dc8328a0f55224915906f23b58062a0 (diff) |
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>
Diffstat (limited to 'tests/gem_cs_prefetch.c')
-rw-r--r-- | tests/gem_cs_prefetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_cs_prefetch.c b/tests/gem_cs_prefetch.c index 983d28eb..4fb2fc4e 100644 --- a/tests/gem_cs_prefetch.c +++ b/tests/gem_cs_prefetch.c @@ -87,7 +87,7 @@ static void exec(int fd, uint32_t handle) int main(int argc, char **argv) { - uint32_t batch_end[2] = {MI_BATCH_BUFFER_END}; + uint32_t batch_end[4] = {MI_BATCH_BUFFER_END, 0, 0, 0}; int fd, i, ret; uint64_t aper_size; int count; |