diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2024-02-09 11:33:58 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-02-29 01:15:22 +0000 |
commit | 3cca761934e1739c9e65cd28faab0356f5d3c2f1 (patch) | |
tree | da42290e1591bcc89ed70ba8ac070f7832ea01a6 /src/gallium/drivers/virgl/virgl_screen.c | |
parent | 74f63925450aedb3a32b03f7272549c961fd8539 (diff) |
gallium: add a nboxes param to flush_frontbuffer
this allows conveying damage regions through the sw presentation interface
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27703>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_screen.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index 6599f5f5c4c..a841e171540 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -927,7 +927,7 @@ static void virgl_flush_frontbuffer(struct pipe_screen *screen, struct pipe_context *ctx, struct pipe_resource *res, unsigned level, unsigned layer, - void *winsys_drawable_handle, struct pipe_box *sub_box) + void *winsys_drawable_handle, unsigned nboxes, struct pipe_box *sub_box) { struct virgl_screen *vscreen = virgl_screen(screen); struct virgl_winsys *vws = vscreen->vws; @@ -937,7 +937,7 @@ static void virgl_flush_frontbuffer(struct pipe_screen *screen, if (vws->flush_frontbuffer) { virgl_flush_eq(vctx, vctx, NULL); vws->flush_frontbuffer(vws, vctx->cbuf, vres->hw_res, level, layer, winsys_drawable_handle, - sub_box); + nboxes == 1 ? sub_box : NULL); } } |