dri: Update dri_util to keep track of __DRI_BACKGROUND_CALLABLE
authorPaul Berry <stereotype441@gmail.com>
Wed, 14 Nov 2012 22:39:21 +0000 (14:39 -0800)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Mar 2017 03:14:18 +0000 (14:14 +1100)
Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
Acked-by: Marek Olšák <maraeo@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/common/dri_util.h

index d18c458d18686831f910c35daf419234289f871f..f6df48802f310a8a192fb5c03c56cf90c8b2ac5b 100644 (file)
@@ -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)
index 6987f555e6623c6b4bd9a486f99713ce846a1743..8fcd6322d04a775bbd62b0288c5d156a10d24b75 100644 (file)
@@ -172,6 +172,7 @@ struct __DRIscreenRec {
        const __DRIdri2LoaderExtension *loader;
        const __DRIimageLookupExtension *image;
        const __DRIuseInvalidateExtension *useInvalidate;
+        const __DRIbackgroundCallableExtension *backgroundCallable;
     } dri2;
 
     struct {