i965: Mark a few more brw_wm_surface_state functions as non-static.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Apr 2011 01:11:31 +0000 (18:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2011 06:33:01 +0000 (23:33 -0700)
I need to reuse them.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index 763f20fc203a1e8e6f7baf31092684a5d3d27ff8..527c28055c816474d2f6cd897abf8b68e897e48d 100644 (file)
@@ -182,6 +182,13 @@ void brw_create_constant_surface(struct brw_context *brw,
 
 uint32_t brw_format_for_mesa_format(gl_format mesa_format);
 
+GLuint translate_tex_target(GLenum target);
+
+GLuint translate_tex_format(gl_format mesa_format,
+                           GLenum internal_format,
+                           GLenum depth_mode,
+                           GLenum srgb_decode);
+
 /* gen6_sf_state.c */
 uint32_t
 get_attr_override(struct brw_context *brw, int fs_attr, int two_side_color);
index 2847958e79b7d45e468bae01eaa40d2fd76dd3ea..d34059f0e61bf74080845f94c6ee71c08c5b8c39 100644 (file)
@@ -45,7 +45,8 @@
 #include "brw_defines.h"
 #include "brw_wm.h"
 
-static GLuint translate_tex_target( GLenum target )
+GLuint
+translate_tex_target(GLenum target)
 {
    switch (target) {
    case GL_TEXTURE_1D: 
@@ -148,10 +149,11 @@ brw_render_target_supported(gl_format format)
    return brw_format_for_mesa_format(format) != 0;
 }
 
-static GLuint translate_tex_format( gl_format mesa_format,
-                                    GLenum internal_format,
-                                   GLenum depth_mode, 
-                                   GLenum srgb_decode )
+GLuint
+translate_tex_format(gl_format mesa_format,
+                    GLenum internal_format,
+                    GLenum depth_mode,
+                    GLenum srgb_decode)
 {
    switch( mesa_format ) {