[Mesa-dev] [PATCH] virgl/vtest: fix front buffer flush with protocol version 0.

Gert Wollny gw.fossdev at gmail.com
Thu Dec 27 12:52:45 UTC 2018


Looks good to me, 

Reviewed-By: Gert  Wollny <gert.wollny at collabora.com>

Am Donnerstag, den 27.12.2018, 16:11 +1000 schrieb Dave Airlie:
> From: Dave Airlie <airlied at redhat.com>
> 
> Older versions of virglrenderer before
> 33da7361aec486290df0aec4ad8dfa8ff6adde2c
> in vtest mode, misrender gears.
> 
> Fixes: 9d81cd8e7c (virgl: Pass resource size and transfer offsets)
> ---
>  src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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);
>  




More information about the mesa-dev mailing list