test: Fix stride calculation in stress-test
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>
Tue, 12 Jun 2018 14:38:57 +0000 (17:38 +0300)
committerAdam Jackson <ajax@redhat.com>
Fri, 6 Jul 2018 18:44:22 +0000 (14:44 -0400)
commit018bf2f23033ea0c82df3e4cf48dbb330bec9414
tree8c344beb5dbf0b5a21ab7f33ec536d5537eafb88
parentbd2b49185b28c5024597a5e530af9fc25de3193a
test: Fix stride calculation in stress-test

Currently the number of bits per pixel is used instead of the
number of bytes per pixel when calculating image strides. This
does not cause any real problems, but the gaps between scanlines
are excessively large.

This patch actually converts bits to bytes and rounds up the result
to the nearest byte boundary.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Reviewed-by: soren.sandmann@gmail.com
test/stress-test.c