I need to reuse them.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
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);
#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:
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 ) {