diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2022-06-20 15:36:58 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-06-22 02:18:37 +0000 |
commit | 23b63e536e54c00de9dc1b634265de3337318588 (patch) | |
tree | c497bd5d370103e4f2c3ee57604bc605913b5364 | |
parent | cee1c4fc7f35c74103af50d6b6ccfe46e3ccc384 (diff) |
glx/drisw: store the flush extension to the screen
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17147>
-rw-r--r-- | src/glx/drisw_glx.c | 2 | ||||
-rw-r--r-- | src/glx/drisw_priv.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 96b6f227408..a9c6aac40b3 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -837,6 +837,8 @@ driswBindExtensions(struct drisw_screen *psc, const __DRIextension **extensions) __glXEnableDirectExtension(&psc->base, "GLX_ARB_context_flush_control"); } + if (strcmp(extensions[i]->name, __DRI2_FLUSH) == 0) + psc->f = (__DRI2flushExtension *) extensions[i]; } if (psc->kopper) { diff --git a/src/glx/drisw_priv.h b/src/glx/drisw_priv.h index 401d94fc755..3843942ca1c 100644 --- a/src/glx/drisw_priv.h +++ b/src/glx/drisw_priv.h @@ -51,6 +51,7 @@ struct drisw_screen const __DRIcoreExtension *core; const __DRIswrastExtension *swrast; const __DRIkopperExtension *kopper; + const __DRI2flushExtension *f; const __DRItexBufferExtension *texBuffer; const __DRIcopySubBufferExtension *copySubBuffer; const __DRI2rendererQueryExtension *rendererQuery; |