aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c
index 65963ad50e1..5422b29e55a 100644
--- a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c
+++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c
@@ -644,7 +644,7 @@ static void virgl_vtest_flush_frontbuffer(struct virgl_winsys *vws,
* get the data. */
virgl_vtest_recv_transfer_get_data(vtws, map + offset, size, valid_stride,
&box, res->format,
- util_format_get_stride(res->format, res->width));
+ vtws->protocol_version == 0 ? valid_stride : util_format_get_stride(res->format, res->width));
vtws->sws->displaytarget_unmap(vtws->sws, res->dt);