From: Roland Scheidegger Date: Fri, 8 Mar 2013 18:45:52 +0000 (+0100) Subject: tgsi: fix wrong reg used for unit for TGSI_OPCODE_TXF X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b3a0bb45d99572be7ed32a36adaefc672860e4b;p=mesa.git tgsi: fix wrong reg used for unit for TGSI_OPCODE_TXF Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index 6a74ef30adb..9945d42e195 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -2139,9 +2139,9 @@ exec_txd(struct tgsi_exec_machine *mach, static void exec_txf(struct tgsi_exec_machine *mach, - const struct tgsi_full_instruction *inst) + const struct tgsi_full_instruction *inst) { - const uint unit = inst->Src[2].Register.Index; + const uint unit = inst->Src[1].Register.Index; union tgsi_exec_channel r[4]; uint chan; float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE];