diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-09-26 09:23:42 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-09-26 09:25:57 +0100 |
commit | 94ca170e9e6943931261398b9987a7101565125f (patch) | |
tree | 294e414e253510a45dc22f9b5cd95fa181b5ae2a /tests | |
parent | 32b20211adf231b41dd5af8efc561bcf7d960da6 (diff) |
igt/gem_concurrent_blit: Only set the pixels to be compared (GTT paths)
Just to tidy a discrepancy where doing the compare using the GTT (i.e. a
readback) is now faster than setting the contents initially (as the
readback only checks one pixel per page, do the same for setting the
object).
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_concurrent_all.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/gem_concurrent_all.c b/tests/gem_concurrent_all.c index 76aecd2a..44543fa8 100644 --- a/tests/gem_concurrent_all.c +++ b/tests/gem_concurrent_all.c @@ -485,11 +485,10 @@ static void gtt_set_bo(struct buffers *b, drm_intel_bo *bo, uint32_t val) { uint32_t *vaddr = bo->virtual; - int size = b->npixels; drm_intel_gem_bo_start_gtt_access(bo, true); - while (size--) - *vaddr++ = val; + for (int y = 0; y < b->height; y++) + vaddr[pixel(y, b->width)] = val; } static void |