summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/virgl/virgl_screen.c
diff options
context:
space:
mode:
authorMax R <max8rr8@gmail.com>2023-08-07 09:58:21 +0300
committerMarge Bot <emma+marge@anholt.net>2024-02-05 08:41:23 +0000
commit54c52932d48314b8f74ff32814abf0894adad1f8 (patch)
tree17c5aa00fed4f61fcba7deb5d110dffb5522877e /src/gallium/drivers/virgl/virgl_screen.c
parent15c21eafc2fb34226b783b08987fae448e8b9aa3 (diff)
virgl: Pass cmd_buf to flush_frontbuffer
Required by gdi virgl winsys. Reviewed-by: Feng Jiang <jiangfeng@kylinos.cn> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27308>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_screen.c')
-rw-r--r--src/gallium/drivers/virgl/virgl_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c
index 4c61580c0fd..6599f5f5c4c 100644
--- a/src/gallium/drivers/virgl/virgl_screen.c
+++ b/src/gallium/drivers/virgl/virgl_screen.c
@@ -936,7 +936,7 @@ static void virgl_flush_frontbuffer(struct pipe_screen *screen,
if (vws->flush_frontbuffer) {
virgl_flush_eq(vctx, vctx, NULL);
- vws->flush_frontbuffer(vws, vres->hw_res, level, layer, winsys_drawable_handle,
+ vws->flush_frontbuffer(vws, vctx->cbuf, vres->hw_res, level, layer, winsys_drawable_handle,
sub_box);
}
}