st/mesa: rename translate_texture_target, and make translate_opcode static.
authorDave Airlie <airlied@redhat.com>
Wed, 11 Jan 2012 17:32:40 +0000 (17:32 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Jan 2012 17:35:25 +0000 (17:35 +0000)
As suggested by Brian.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_mesa_to_tgsi.c
src/mesa/state_tracker/st_mesa_to_tgsi.h

index a947e186b50b12c567dd57706dfc157c6ac45910..555f88bc2d92fd7f3fab9d0dc64e9735346e1cc6 100644 (file)
@@ -4182,7 +4182,7 @@ compile_tgsi_instruction(struct st_translate *t,
       ureg_tex_insn(ureg,
                     inst->op,
                     dst, num_dst, 
-                    translate_texture_target(inst->tex_target, inst->tex_shadow),
+                    st_translate_texture_target(inst->tex_target, inst->tex_shadow),
                     texoffsets, inst->tex_offset_num_offset,
                     src, num_src);
       return;
index e467ffd56add5324ffb94c37835a4f143628da8a..0764234bd4b164ae6b9f19e121cf23ebfd6d739b 100644 (file)
@@ -269,7 +269,7 @@ src_register( struct st_translate *t,
  * Map mesa texture target to TGSI texture target.
  */
 unsigned
-translate_texture_target( GLuint textarget,
+st_translate_texture_target( GLuint textarget,
                           GLboolean shadow )
 {
    if (shadow) {
@@ -516,7 +516,7 @@ static void emit_ddy( struct st_translate *t,
 
 
 
-unsigned
+static unsigned
 translate_opcode( unsigned op )
 {
    switch( op ) {
@@ -708,7 +708,7 @@ compile_instruction(
       ureg_tex_insn( ureg,
                      translate_opcode( inst->Opcode ),
                      dst, num_dst, 
-                     translate_texture_target( inst->TexSrcTarget,
+                     st_translate_texture_target( inst->TexSrcTarget,
                                                inst->TexShadow ),
                      NULL, 0,
                      src, num_src );
index 0dbdf5f6159bacc914e817fbe41d730d267e7c37..7563c8050e350e8ed8399ffa9069cdcd0e595b05 100644 (file)
@@ -65,10 +65,7 @@ void
 st_free_tokens(const struct tgsi_token *tokens);
 
 unsigned
-translate_opcode(unsigned op);
-
-unsigned
-translate_texture_target(GLuint textarget, GLboolean shadow);
+st_translate_texture_target(GLuint textarget, GLboolean shadow);
 
 
 #if defined __cplusplus