From: Tomeu Vizoso Date: Mon, 27 Apr 2020 07:16:49 +0000 (+0200) Subject: virgl: Properly check for encode_stride when encoding transfers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6a20804ad5afb401f1d86dc28460e922d009588;p=mesa.git virgl: Properly check for encode_stride when encoding transfers Signed-off-by: Tomeu Vizoso Reviewed-by: Alexandros Frantzis Part-of: --- 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 {