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 fb07b45a2b55cd5ca2122b2f8dcface91a00b901..1bdfdccf439a5f088159eafcf2d125833d8b7c0f 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 8d108cc4155cd599ef034d46b83ee31b5541547b..74e662d36c456e6d9793af1cb551f511e2c5caf4 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