From: Paul Berry Date: Wed, 14 Nov 2012 22:39:21 +0000 (-0800) Subject: dri: Update dri_util to keep track of __DRI_BACKGROUND_CALLABLE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5bc527d39d2973f24ce062f23094177a660023c6;p=mesa.git dri: Update dri_util to keep track of __DRI_BACKGROUND_CALLABLE Acked-by: Timothy Arceri Acked-by: Marek Olšák Tested-by: Dieter Nützel Tested-by: Mike Lothian --- diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index d18c458d186..f6df48802f3 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -75,6 +75,8 @@ setupLoaderExtensions(__DRIscreen *psp, psp->dri2.image = (__DRIimageLookupExtension *) extensions[i]; if (strcmp(extensions[i]->name, __DRI_USE_INVALIDATE) == 0) psp->dri2.useInvalidate = (__DRIuseInvalidateExtension *) extensions[i]; + if (strcmp(extensions[i]->name, __DRI_BACKGROUND_CALLABLE) == 0) + psp->dri2.backgroundCallable = (__DRIbackgroundCallableExtension *) extensions[i]; if (strcmp(extensions[i]->name, __DRI_SWRAST_LOADER) == 0) psp->swrast_loader = (__DRIswrastLoaderExtension *) extensions[i]; if (strcmp(extensions[i]->name, __DRI_IMAGE_LOADER) == 0) diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h index 6987f555e66..8fcd6322d04 100644 --- a/src/mesa/drivers/dri/common/dri_util.h +++ b/src/mesa/drivers/dri/common/dri_util.h @@ -172,6 +172,7 @@ struct __DRIscreenRec { const __DRIdri2LoaderExtension *loader; const __DRIimageLookupExtension *image; const __DRIuseInvalidateExtension *useInvalidate; + const __DRIbackgroundCallableExtension *backgroundCallable; } dri2; struct {