intel: Declare some functions in intel_fbo.c as non-static
authorChad Versace <chad@chad-versace.us>
Wed, 22 Jun 2011 17:26:26 +0000 (10:26 -0700)
committerChad Versace <chad@chad-versace.us>
Fri, 24 Jun 2011 21:47:20 +0000 (14:47 -0700)
... because they will be needed by intel_tex_image_s8z24_create_renderbuffers.

Redeclared functions are:
    intel_alloc_renderbuffer_storage
    intel_renderbuffer_set_draw_offsets

Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h

index 8dd3696507f58815aceecbcaec21e3a30a9e38fb..b431f530826ab299f8ab6d18613f27b12baa5e51 100644 (file)
@@ -111,7 +111,7 @@ intel_get_pointer(struct gl_context * ctx, struct gl_renderbuffer *rb,
  * Called via glRenderbufferStorageEXT() to set the format and allocate
  * storage for a user-created renderbuffer.
  */
-static GLboolean
+GLboolean
 intel_alloc_renderbuffer_storage(struct gl_context * ctx, struct gl_renderbuffer *rb,
                                  GLenum internalFormat,
                                  GLuint width, GLuint height)
@@ -582,7 +582,7 @@ intel_wrap_texture(struct gl_context * ctx, struct gl_texture_image *texImage)
    return irb;
 }
 
-static void
+void
 intel_renderbuffer_set_draw_offset(struct intel_renderbuffer *irb,
                                   struct intel_texture_image *intel_image,
                                   int zoffset)
index 08cf577a91cfaf6ee4531c7bcf072b8cb69a4b7b..cbf29c8625742d07443347d9c774286d5a124f79 100644 (file)
@@ -33,6 +33,7 @@
 #include "intel_screen.h"
 
 struct intel_context;
+struct intel_texture_image;
 
 /**
  * Intel renderbuffer, derived from gl_renderbuffer.
@@ -174,6 +175,12 @@ intel_create_wrapped_renderbuffer(struct gl_context * ctx,
                                  int width, int height,
                                  gl_format format);
 
+GLboolean
+intel_alloc_renderbuffer_storage(struct gl_context * ctx,
+                                struct gl_renderbuffer *rb,
+                                 GLenum internalFormat,
+                                 GLuint width, GLuint height);
+
 extern void
 intel_fbo_init(struct intel_context *intel);
 
@@ -181,6 +188,11 @@ intel_fbo_init(struct intel_context *intel);
 extern void
 intel_flip_renderbuffers(struct gl_framebuffer *fb);
 
+void
+intel_renderbuffer_set_draw_offset(struct intel_renderbuffer *irb,
+                                  struct intel_texture_image *intel_image,
+                                  int zoffset);
+
 uint32_t
 intel_renderbuffer_tile_offsets(struct intel_renderbuffer *irb,
                                uint32_t *tile_x,