Mesa (main): glx/drisw: store the flush extension to the screen
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 22 02:56:03 UTC 2022
Module: Mesa
Branch: main
Commit: 23b63e536e54c00de9dc1b634265de3337318588
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=23b63e536e54c00de9dc1b634265de3337318588
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Jun 20 15:36:58 2022 -0400
glx/drisw: store the flush extension to the screen
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax at redhat.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17147>
---
src/glx/drisw_glx.c | 2 ++
src/glx/drisw_priv.h | 1 +
2 files changed, 3 insertions(+)
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;
More information about the mesa-commit
mailing list