summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXiang, Haihao <[email protected]>2008-08-06 14:15:31 +0800
committerXiang, Haihao <[email protected]>2008-08-06 14:17:08 +0800
commitc20a1736566d301f38cc1271284b1fde9adb2741 (patch)
tree9dff011d8a998b7b190ba9bf092f8e39555fff58 /src
parent8e8019b49ab137403ba92aef3e286f4e27049ad5 (diff)
i965: update TexSrcUnit for OPCODE_TXB
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_fp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index 61805ec0809..bc933fe7e4d 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c
@@ -1030,6 +1030,11 @@ void brw_wm_pass_fp( struct brw_wm_compile *c )
precalc_txp(c, inst);
break;
+ case OPCODE_TXB:
+ out = emit_insn(c, inst);
+ out->TexSrcUnit = fp->program.Base.SamplerUnits[inst->TexSrcUnit];
+ break;
+
case OPCODE_XPD:
out = emit_insn(c, inst);
/* This should probably be done in the parser.