diff options
author | Jesse Natalie <jenatali@microsoft.com> | 2020-12-10 10:50:54 -0800 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-12-14 23:31:37 +0000 |
commit | 9ac8f8f490d0ee08ac9ca6f1c6963043c2991443 (patch) | |
tree | 95f06202f72427c6fcd9b0760f1273ce33fc4774 /src/gallium/drivers/softpipe/sp_screen.c | |
parent | 23488c35152c58a3f15bde6ade658959de94ff9a (diff) |
gallium: Add optional pipe_context to flush_frontbuffer
It's hooked up in all the pipe wrapper drivers, and all the
frontends except a couple places in glx/xlib.
This enables a more efficient path for drivers which use
swrast's Present, but hardware rendering (e.g. d3d12, zink).
Reviewed-by: Dave Airlie <airlied@redhat.com>
Acked-by: Marek Olák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8045>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_screen.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 43f57bbf081..b30cf8a1a5c 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -481,6 +481,7 @@ softpipe_destroy_screen( struct pipe_screen *screen ) */ static void softpipe_flush_frontbuffer(struct pipe_screen *_screen, + struct pipe_context *pipe, struct pipe_resource *resource, unsigned level, unsigned layer, void *context_private, |