From c20a1736566d301f38cc1271284b1fde9adb2741 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Wed, 6 Aug 2008 14:15:31 +0800 Subject: [PATCH] i965: update TexSrcUnit for OPCODE_TXB --- src/mesa/drivers/dri/i965/brw_wm_fp.c | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.30.2