From b6a20804ad5afb401f1d86dc28460e922d009588 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Mon, 27 Apr 2020 09:16:49 +0200 Subject: [PATCH] virgl: Properly check for encode_stride when encoding transfers Signed-off-by: Tomeu Vizoso Reviewed-by: Alexandros Frantzis Part-of: --- src/gallium/drivers/virgl/virgl_encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/virgl/virgl_encode.c b/src/gallium/drivers/virgl/virgl_encode.c index 6d71f5d6574..c255a1c12e4 100644 --- a/src/gallium/drivers/virgl/virgl_encode.c +++ b/src/gallium/drivers/virgl/virgl_encode.c @@ -763,7 +763,7 @@ static void virgl_encoder_transfer3d_common(struct virgl_screen *vs, if (encode_stride == virgl_transfer3d_explicit_stride) { stride = transfer->stride; layer_stride = transfer->layer_stride; - } else if (virgl_transfer3d_host_inferred_stride) { + } else if (encode_stride == virgl_transfer3d_host_inferred_stride) { stride = 0; layer_stride = 0; } else { -- 2.30.2