From: Brian Paul Date: Sat, 5 Nov 2005 17:18:09 +0000 (+0000) Subject: s/TexSrcIdx/TexSrcTarget/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ba4ef3102196844d663b82565c87765fa240e16;p=mesa.git s/TexSrcIdx/TexSrcTarget/ --- diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c index 4602b3260ee..20424b1da43 100644 --- a/src/mesa/drivers/dri/i915/i915_fragprog.c +++ b/src/mesa/drivers/dri/i915/i915_fragprog.c @@ -191,7 +191,7 @@ static GLuint get_result_flags( const struct prog_instruction *inst ) return flags; } -static GLuint translate_tex_src_idx( struct i915_fragment_program *p, +static GLuint translate_tex_src_target( struct i915_fragment_program *p, GLubyte bit ) { switch (bit) { @@ -206,7 +206,7 @@ static GLuint translate_tex_src_idx( struct i915_fragment_program *p, #define EMIT_TEX( OP ) \ do { \ - GLuint dim = translate_tex_src_idx( p, inst->TexSrcIdx ); \ + GLuint dim = translate_tex_src_target( p, inst->TexSrcTarget ); \ GLuint sampler = i915_emit_decl(p, REG_TYPE_S, \ inst->TexSrcUnit, dim); \ GLuint coord = src_vector( p, &inst->SrcReg[0], program); \