virgl, vtest: Correct the transfer size calculation
authorGert Wollny <gert.wollny@collabora.com>
Thu, 4 Oct 2018 14:40:07 +0000 (16:40 +0200)
committerGert Wollny <gw.fossdev@gmail.com>
Sat, 6 Oct 2018 11:12:44 +0000 (13:12 +0200)
commit5d7858f1517eb0961811e4106ba11c011d7002e3
tree6db7d297dcd454e9c07bb7f047cdc2fd44c323f7
parent066850edadfe2aa0d339a0c6211ef0a61755a415
virgl, vtest: Correct the transfer size calculation

The transfer size used in virglrenderer refers to uint32_t, so one
must add 3 and then divide by 4 instead of adding 3/4 which is a no-op
with integers.

Fixes: b3b82fe8ea virgl/vtest: add vtest driver
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c