From: Xiang, Haihao Date: Wed, 6 Aug 2008 06:15:31 +0000 (+0800) Subject: i965: update TexSrcUnit for OPCODE_TXB X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c20a1736566d301f38cc1271284b1fde9adb2741;p=mesa.git i965: update TexSrcUnit for OPCODE_TXB --- 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.