diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2011-04-27 18:11:31 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2011-05-17 23:33:01 -0700 |
commit | c12a93d5c452da16ff0c8955e55770b8eda28036 (patch) | |
tree | 37c34bde24eb081d144fe5d98058f20907295d47 /src | |
parent | 70c6cd39bd9396b0d3f9e84df41fd8bef1f26cc4 (diff) |
i965: Mark a few more brw_wm_surface_state functions as non-static.
I need to reuse them.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state.h | 7 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 12 |
2 files changed, 14 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index 763f20fc203..527c28055c8 100644 --- a/src/mesa/drivers/dri/i965/brw_state.h +++ b/src/mesa/drivers/dri/i965/brw_state.h @@ -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); diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 2847958e79b..d34059f0e61 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -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 ) { |