summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-03-08 19:45:52 +0100
committerRoland Scheidegger <sroland@vmware.com>2013-03-11 17:07:51 +0100
commit7b3a0bb45d99572be7ed32a36adaefc672860e4b (patch)
tree6d85af5672a20ed234278e2f06ec6b5c302bd576 /src/gallium/auxiliary/tgsi
parenta0676968b958ee5bb6270b34485a1c84764028cf (diff)
downloadexternal_mesa3d-7b3a0bb45d99572be7ed32a36adaefc672860e4b.zip
external_mesa3d-7b3a0bb45d99572be7ed32a36adaefc672860e4b.tar.gz
external_mesa3d-7b3a0bb45d99572be7ed32a36adaefc672860e4b.tar.bz2
tgsi: fix wrong reg used for unit for TGSI_OPCODE_TXF
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 6a74ef3..9945d42 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];