diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2008-08-06 14:15:31 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2008-08-06 14:17:08 +0800 |
commit | c20a1736566d301f38cc1271284b1fde9adb2741 (patch) | |
tree | 9dff011d8a998b7b190ba9bf092f8e39555fff58 | |
parent | 8e8019b49ab137403ba92aef3e286f4e27049ad5 (diff) |
i965: update TexSrcUnit for OPCODE_TXB
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_fp.c | 5 |
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 61805ec080..bc933fe7e4 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. |