[intel] assert that buffers are not mapped at last unreference.
[mesa.git] / src / mesa / drivers / dri / common / utils.h
index 6640229e475f637d1a3ef143a9d495e65d469b84..b2bab86e66c69b4d105f1e464e36fad203e36a9e 100644 (file)
@@ -54,10 +54,16 @@ struct dri_extension_function {
     const char * strings;
 
 
+    /**
+     * Location in the remap table where the dispatch offset should be
+     * stored.
+     */
+    int remap_index;
+
     /**
      * Offset of the function in the dispatch table.
      */
-    unsigned     offset;
+    int offset;
 };
 
 /**
@@ -100,6 +106,8 @@ extern GLboolean driCheckDriDdxDrmVersions3(const char * driver_name,
     const __DRIversion * ddxActual, const __DRIutilversion2 * ddxExpected,
     const __DRIversion * drmActual, const __DRIversion * drmExpected);
 
+extern GLint driIntersectArea( drm_clip_rect_t rect1, drm_clip_rect_t rect2 );
+
 extern GLboolean driClipRectToFramebuffer( const GLframebuffer *buffer,
                                           GLint *x, GLint *y,
                                           GLsizei *width, GLsizei *height );