glx: inline DRI2_THROTTLE

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30450>
This commit is contained in:
Mike Blumenkrantz 2024-07-25 12:43:06 -04:00 committed by Marge Bot
parent f2431a33d5
commit 64a77a9017
2 changed files with 2 additions and 6 deletions

View file

@ -425,11 +425,9 @@ dri2Throttle(struct dri2_screen *psc,
struct dri2_drawable *draw,
enum __DRI2throttleReason reason)
{
if (psc->throttle) {
__DRIcontext *ctx = dri2GetCurrentContext();
__DRIcontext *ctx = dri2GetCurrentContext();
psc->throttle->throttle(ctx, draw->driDrawable, reason);
}
dri_throttle(ctx, draw->driDrawable, reason);
}
/**
@ -872,7 +870,6 @@ dri2BindExtensions(struct dri2_screen *psc, struct glx_display * priv,
}
static const struct dri_extension_match exts[] = {
{ __DRI2_THROTTLE, 1, offsetof(struct dri2_screen, throttle), true },
{ __DRI2_INTEROP, 1, offsetof(struct dri2_screen, interop), true },
};
loader_bind_extensions(psc, exts, ARRAY_SIZE(exts), extensions);

View file

@ -45,7 +45,6 @@ struct dri2_screen {
__DRIscreen *driScreen;
__GLXDRIscreen vtable;
const __DRI2throttleExtension *throttle;
const __DRI2interopExtension *interop;
const __DRIconfig **driver_configs;