st/dri: make dri_drawable_validate_att static
authorGeorge Sapountzis <gsapountzis@gmail.com>
Wed, 11 Aug 2010 21:03:56 +0000 (00:03 +0300)
committerGeorge Sapountzis <gsapountzis@gmail.com>
Fri, 13 Aug 2010 20:08:02 +0000 (23:08 +0300)
src/gallium/state_trackers/dri/common/dri_drawable.c
src/gallium/state_trackers/dri/common/dri_drawable.h

index fb07b45..1bdfdcc 100644 (file)
@@ -158,9 +158,9 @@ dri_destroy_buffer(__DRIdrawable * dPriv)
 
 /**
  * Validate the texture at an attachment.  Allocate the texture if it does not
- * exist.
+ * exist.  Used by the TFP extension.
  */
-void
+static void
 dri_drawable_validate_att(struct dri_drawable *drawable,
                           enum st_attachment_type statt)
 {
@@ -181,7 +181,6 @@ dri_drawable_validate_att(struct dri_drawable *drawable,
 
    drawable->texture_stamp = drawable->dPriv->lastStamp - 1;
 
-   /* this calles into the manager */
    drawable->base.validate(&drawable->base, statts, count, NULL);
 }
 
index 8d108cc..74e662d 100644 (file)
@@ -89,10 +89,6 @@ dri_drawable_get_format(struct dri_drawable *drawable,
                         enum pipe_format *format,
                         unsigned *bind);
 
-void
-dri_drawable_validate_att(struct dri_drawable *drawable,
-                          enum st_attachment_type statt);
-
 extern const __DRItexBufferExtension driTexBufferExtension;
 
 #endif