i965: update TexSrcUnit for OPCODE_TXB
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 6 Aug 2008 06:15:31 +0000 (14:15 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 6 Aug 2008 06:17:08 +0000 (14:17 +0800)
src/mesa/drivers/dri/i965/brw_wm_fp.c

index 61805ec0809146ff25e39e3ed7d4751c74a69a28..bc933fe7e4d060451d49b01f46f1592e05082cbe 100644 (file)
@@ -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.