diff options
author | Emma Anholt <emma@anholt.net> | 2023-02-14 10:32:57 -0800 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-02-15 19:17:07 +0000 |
commit | 6de8b9a65b9b3b06836ddba05ddd3b4a58c674ab (patch) | |
tree | 8631d6081b1a10ca79ee20412dee21bfba6c1871 /include | |
parent | 53780b7a3acd5b080cafa11ff3e974de99d6198c (diff) | |
download | mesa-6de8b9a65b9b3b06836ddba05ddd3b4a58c674ab.tar.gz |
egl/kopper: Pass ancillary invalidate flush flags down to gallium.
We can just add the flags to the kopper interface, since it's private to
Mesa. This gets us depth/stencil invalidation on swapbuffers, which is
critical for tiler performance.
glmark2-es2 -b texture (windowed) goes from 1650 to 1930 fps on
zink+turnip with ZINK_DEBUG=rp.
Part of #7321 (we're still a little behind freedreno's 2180 fps)
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21317>
Diffstat (limited to 'include')
-rw-r--r-- | include/kopper_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/kopper_interface.h b/include/kopper_interface.h index 3db53e8d52c..261d1222ec8 100644 --- a/include/kopper_interface.h +++ b/include/kopper_interface.h @@ -61,7 +61,8 @@ struct __DRIkopperExtensionRec { const __DRIconfig *config, void *loaderPrivate, int pixmap); - int64_t (*swapBuffers)(__DRIdrawable *draw); + /* flags is a set of __DRI2_FLUSH_* flags */ + int64_t (*swapBuffers)(__DRIdrawable *draw, uint32_t flush_flags); void (*setSwapInterval)(__DRIdrawable *drawable, int interval); int (*queryBufferAge)(__DRIdrawable *drawable); }; |