summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i915/i915_fragprog.c4
1 files changed, 2 insertions, 2 deletions
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); \